playwright/docs/docker
Arjun Attam 3eec2d07f5
docs(ci): list sample configurations for ci (#1196)
Has some overlaps with the troubleshooting doc, which I plan to clean up in a subsequent PR. This first version of the doc has a feel of "build-your-own" with our sample configurations. Over time we can tweak the level of hand-holding for the best user experience to get started with CI.

Fixes #1103
2020-03-03 12:21:21 -08:00
..
chrome.json feat: add a playwright-ready docker image (#1161) 2020-02-28 14:40:26 -08:00
Dockerfile.bionic chore(docs): optionally install XVFB in docker 2020-03-02 18:54:13 -08:00
README.md docs(ci): list sample configurations for ci (#1196) 2020-03-03 12:21:21 -08:00

Running Playwright in Docker

Dockerfile.bionic is a playwright-ready image of playwright. This image includes all the dependencies needed to run browsers in a Docker container.

Building image:

$ sudo docker build -t microsoft/playwright:bionic -f Dockerfile.bionic .

Running image:

$ sudo docker container run -it --rm --security-opt seccomp=chrome.json microsoft/playwright /bin/bash

Note

: The seccomp profile is coming from Jessie Frazelle. It's needed to run Chrome without sandbox.