Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(docker): stop advertising :focal tag (#12791)
Max Schmitt61c66bb82b71
diff --git a/docs/src/docker.md b/docs/src/docker.mdindex a2d285fae4..e1e23df226 100644--- a/docs/src/docker.md+++ b/docs/src/docker.md@@ -13,23 +13,7 @@ This image is published on [Docker Hub].### Pull the image-```bash js-docker pull mcr.microsoft.com/playwright:focal-```--```bash python-docker pull mcr.microsoft.com/playwright/python:focal-```--```bash csharp-docker pull mcr.microsoft.com/playwright/dotnet:focal-```--```bash java-docker pull mcr.microsoft.com/playwright/java:focal-```--or pinned to a specific Playwright version (recommended). Replace 1.20.0 with your Playwright version:+Replace 1.20.0 with your Playwright version:```bash jsdocker pull mcr.microsoft.com/playwright:v1.20.0-focal@@ -56,19 +40,19 @@ By default, the Docker image will use the `root` user to run the browsers. ThisOn trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers.```bash js-docker run -it --rm --ipc=host mcr.microsoft.com/playwright:focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.20.0-focal /bin/bash``````bash python-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.20.0-focal /bin/bash``````bash csharp-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.20.0-focal /bin/bash``````bash java-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.20.0-focal /bin/bash```#### Crawling and scraping@@ -76,19 +60,19 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:focal /bin/bashOn untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it.```bash js-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.20.0-focal /bin/bash``````bash python-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.20.0-focal /bin/bash``````bash csharp-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.20.0-focal /bin/bash``````bash java-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.20.0-focal /bin/bash```[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions:@@ -127,7 +111,6 @@ Docker images are published automatically by GitHub Actions. We currently publisfollowing tags (`v1.20.0` in this case is an example:):- `:next` - tip-of-tree image version based on Ubuntu 20.04 LTS (Focal Fossa).- `:next-focal` - tip-of-tree image version based on Ubuntu 20.04 LTS (Focal Fossa).-- `:focal` - last Playwright release docker image based on Ubuntu 20.04 LTS (Focal Fossa).- `:v1.20.0` - Playwright v1.20.0 release docker image based on Ubuntu 20.04 LTS (Focal Fossa).- `:v1.20.0-focal` - Playwright v1.20.0 release docker image based on Ubuntu 20.04 LTS (Focal Fossa).- `:sha-XXXXXXX` - docker image for every commit that changed