Skip to content

mxschmitt/playwright-windows-containers

Repository files navigation

Run Playwright tests inside Windows Docker container

Limitations

  • You need to use mcr.microsoft.com/windows or mcr.microsoft.com/windows/server as a base image, servercore or nanoserver don't work due to missing dependencies.
  • Firefox currently does not launch inside Windows Containers: microsoft/playwright#13679

Requirements

See here: https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce

Usage

See the Dockerfile for the Dockerfile.

Demo project:

git clone https://github.com/mxschmitt/playwright-windows-containers
cd playwright-windows-containers
docker build -t mxschmitt/playwright-windows-containers .
docker run --rm mxschmitt/playwright-windows-containers