Minimal Chromium CDP base image for Playwright debugging.
432
Minimal Chromium CDP base image for Playwright debugging.
This image is intended for frontend development and browser automation workflows that need a lightweight Chromium container with a stable Chrome DevTools Protocol (CDP) endpoint.
connectOverCDPlatest
Default recommended tag. Currently points to the min variant.min
Minimal Chinese font setup. Best default for most Simplified Chinese pages.full
Larger image with broader CJK coverage.full-emoji
full plus emoji font support.0.1.0-min, 0.1.0-full, 0.1.0-full-emoji
Use these when you want reproducible builds.Pull the default variant:
docker pull ricsy/chromium-cdp:latest
Run a CDP endpoint on port 9222:
docker run --rm \
-p 9222:9222 \
--add-host=host.docker.internal:host-gateway \
--ipc=host \
ricsy/chromium-cdp:latest
Notes:
--ipc=host is recommended for Chromium stability.host.docker.internal is useful when your frontend dev server runs on the host machine.import { chromium } from 'playwright'
const browser = await chromium.connectOverCDP('http://127.0.0.1:9222')
const context = browser.contexts()[0]
const page = context.pages()[0] ?? await context.newPage()
await page.goto('http://host.docker.internal:5173')
console.log(await page.title())
Choose min when:
Choose full when:
Choose full-emoji when:
CHINESE_FONT_PROFILE=min|fullINSTALL_EMOJI_FONT=true|falseDEBIAN_MIRRORDEBIAN_SECURITY_MIRRORThese arguments are mainly relevant if you rebuild or fork this image.
Inspect published manifests:
docker buildx imagetools inspect ricsy/chromium-cdp:latest
docker buildx imagetools inspect ricsy/chromium-cdp:0.1.0-min
Source and release workflow are maintained in:
ricsy/docker-imagesimages/chromium-cdp/Content type
Image
Digest
sha256:10a009d6c…
Size
143 MB
Last updated
3 months ago
docker pull ricsy/chromium-cdp