Skip to content

Playwright Docker Images. (Ubuntu, Alpine) x (ARMv8, x64) x (Chromium, Firefox, WebKit, Chrome, Edge)

License

Notifications You must be signed in to change notification settings

JacobLinCool/playwright-docker

Repository files navigation

Playwright Docker Images

multi-arch x multi-browser

View on Docker Hub: https://hub.docker.com/r/jacoblincool/playwright/

Tags

  • jacoblincool/playwright:base - Ubuntu Jammy, Node 20, Playwright
  • jacoblincool/playwright:chromium - Ubuntu Jammy, Node 20, Playwright, Chromium
  • jacoblincool/playwright:firefox - Ubuntu Jammy, Node 20, Playwright, Firefox
  • jacoblincool/playwright:webkit - Ubuntu Jammy, Node 20, Playwright, WebKit
  • jacoblincool/playwright:chrome - Ubuntu Jammy, Node 20, Playwright, Chrome
  • jacoblincool/playwright:msedge - Ubuntu Jammy, Node 20, Playwright, Edge
  • jacoblincool/playwright:all - Ubuntu Jammy, Node 20, Playwright, All Browsers

Lightweight Images

  • jacoblincool/playwright:base-light - Alpine 3.20, Node 23, Playwright
  • jacoblincool/playwright:chromium-light - Alpine 3.20, Node 23, Playwright, Chromium

Playwright Servers

Those images are running Playwright Server and expose the WebSocket endpoint, see ./server for more details.

  • jacoblincool/playwright:chromium-server
  • jacoblincool/playwright:firefox-server
  • jacoblincool/playwright:webkit-server
  • jacoblincool/playwright:chrome-server
  • jacoblincool/playwright:msedge-server
  • jacoblincool/playwright:chromium-light-server

The default endpoint is ws://localhost:53333/playwright, you can override it by setting the BROWSER_PORT and BROWSER_WS_ENDPOINT environment variables.

They can be run using the following command:

docker run --rm -p 53333:53333 jacoblincool/playwright:chromium-light-server

Connect to server using Playwright

Javascript
import { chromium } from "playwright";
const browser = await chromium.connect("ws://localhost:53333/playwright");
Python

In examples replace (BrowserType method) launch with connect

import asyncio
import playwright.async_api as playwright


async def main():
    async with playwright.async_playwright() as playwright:
        browser: playwright.Browser = playwright.chromium.connect("ws://localhost:53333/playwright")


asyncio.run(main())

Supported Architectures

Browser ARMv8 (aarch64) AMD64 (x86_64)
Chromium
Firefox
WebKit
Chrome
Edge

Lightweight Image Architectures

Browser ARMv8 (aarch64) AMD64 (x86_64)
Chromium

Sources

GitHub: https://github.com/JacobLinCool/playwright-docker

About

Playwright Docker Images. (Ubuntu, Alpine) x (ARMv8, x64) x (Chromium, Firefox, WebKit, Chrome, Edge)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •