arrow-left Back to topicQuizDockerCheck yourself1.You're using the Playwright Docker image in CI but Chromium keeps crashing with out-of-memory errors. What's the most likely fix?Increase the CI runner's RAM by upgrading to a larger machineAdd --ipc=host to the docker run command — Docker limits /dev/shm to 64MB by default and Chromium needs more shared memorySwitch from Chromium to Firefox which uses less memory2.What is the correct registry path for the official Playwright Docker image on Ubuntu 24.04?docker.io/playwright/playwright:latestmcr.microsoft.com/playwright:v1.x-nobleghcr.io/microsoft/playwright:latestplaywright/chromium:noble3.Why do teams use the Playwright Docker image in CI instead of installing browsers on the runner directly?Docker images are faster to start than bare runnersThe Docker image costs less in CI minutesThe Docker image provides consistent browser versions and system libraries across all runners, eliminating environment-specific test failuresDocker images automatically update browsers when Playwright is updated4.You want to run Playwright tests inside a Docker container. Which command correctly starts the container with the required flags?docker run -it --rm mcr.microsoft.com/playwright:v1.50.0-noble /bin/bashdocker run -it --rm --init --ipc=host mcr.microsoft.com/playwright:v1.50.0-noble /bin/bashdocker run -it --rm --privileged mcr.microsoft.com/playwright:v1.50.0-noble /bin/bashdocker run -it --rm --memory=4g mcr.microsoft.com/playwright:v1.50.0-noble /bin/bash5.What does the --ipc=host flag do when running Playwright in Docker?It exposes port 3000 from the container to the host machineIt makes the container share the host's IPC namespace, giving Chromium access to adequate shared memory beyond Docker's 64MB /dev/shm limitIt enables inter-process communication between test workersIt installs additional system packages required by Chromium6.In a GitHub Actions workflow using the Playwright Docker image as a container, what extra option must you add to avoid permission errors on workspace files?volumes: - ${{ github.workspace }}:/workspaceoptions: --user 1001permissions: write-allenv: RUNNER_USER=root7.Why should you never use Alpine-based Docker images for running Playwright tests with Firefox or WebKit?Alpine images don't support Docker volumesAlpine uses musl libc, but Firefox and WebKit are compiled against glibc and simply won't run on AlpineAlpine images don't include Node.jsAlpine is not supported by the Playwright Docker documentation8.Why does the article recommend always pinning to an exact version tag (e.g. v1.50.0-noble) instead of using the 'latest' tag for the Playwright Docker image?The 'latest' tag is not available on mcr.microsoft.comUsing 'latest' means CI can silently switch to a newer browser version, breaking visual regression baselines without any code changePinning is required by the GitHub Actions security policyThe 'latest' tag always points to a beta versionSubmit answersarrow-left PreviousContinuous IntegrationEmulationNext arrow-right