Official Docker image for Lightpanda browser.
Lightpanda is the open-source browser made for headless usage:
- Javascript execution
- Support of Web APIs
- Compatible with CDP clients like Playwright, Puppeteer or Chromedp.
Fast web automation for AI agents, LLM training, scraping and testing:
- Ultra-low memory footprint (9x less than Chrome)
- Exceptionally fast execution (11x faster than Chrome)
- Instant startup
Using docker run.
$ docker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:nightly
Using docker compose.
services:
lightpanda:
image: lightpanda/browser:nightly
restart: unless-stopped
ports:
- '127.0.0.1:9222:9222'
$ docker run -rm lightpanda/browser:nightly lightpanda fetch --dump html https://lightpanda.io
$ docker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:nightly lightpanda serve --host 0.0.0.0 --port 9222 --log_level debug
$ docker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:nightly lightpanda version
The image sets LIGHTPANDA_DISABLE_CORE_DUMP=1 by default to disable core
dumps.
To re-enable core dumps, unset the variable at run time by passing -e with
the variable name only (and no value set in your shell):
$ docker run -d --name lightpanda -p 127.0.0.1:9222:9222 -e LIGHTPANDA_DISABLE_CORE_DUMP lightpanda/browser:nightly