An open API service indexing awesome lists of open source software.

https://github.com/mxschmitt/playwright-windows-containers

Run Playwright inside Windows Docker containers
https://github.com/mxschmitt/playwright-windows-containers

docker playwright windows windows-containers

Last synced: 8 days ago
JSON representation

Run Playwright inside Windows Docker containers

Awesome Lists containing this project

README

        

# 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: https://github.com/microsoft/playwright/issues/13679

## Requirements

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

## Usage

See the [`Dockerfile`](./Dockerfile) for the Dockerfile.

Demo project:

```bash
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
```