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
- Host: GitHub
- URL: https://github.com/mxschmitt/playwright-windows-containers
- Owner: mxschmitt
- License: mit
- Created: 2022-08-21T14:20:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T17:21:21.000Z (over 2 years ago)
- Last Synced: 2025-02-07T19:35:06.742Z (3 months ago)
- Topics: docker, playwright, windows, windows-containers
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```