Version: 1.2.0
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.
Usage#
This image is published on Docker Hub.
Pull the image#
Run the image#
Note that:
- The seccomp profile is required to run Chrome without sandbox. Thanks to Jessie Frazelle.
- Using
--ipc=hostis also recommended when using Chrome (Docker docs). Chrome can run out of memory without this flag.
Using on CI#
See our Continuous Integration guides for sample configs.
Development#
Build the image#
Push#
Playwright on Docker Hub relies on
Base images#
playwright:bionic is based on Ubuntu 18.04 LTS (Bionic Beaver).
Alpine#
Browser builds for Firefox and WebKit are built for the glibc library. Alpine Linux and other distributions that are based on the musl standard library are not supported.