Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akornatskyy/chromium-headless
Chromium Headless Docker Library | Updated Weekly :clock4:
https://github.com/akornatskyy/chromium-headless
alpine chromium docker headless
Last synced: 24 days ago
JSON representation
Chromium Headless Docker Library | Updated Weekly :clock4:
- Host: GitHub
- URL: https://github.com/akornatskyy/chromium-headless
- Owner: akornatskyy
- Created: 2019-11-06T16:21:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-13T07:01:48.000Z (over 1 year ago)
- Last Synced: 2024-04-08T17:08:33.435Z (9 months ago)
- Topics: alpine, chromium, docker, headless
- Language: Shell
- Homepage: https://hub.docker.com/r/akorn/chromium-headless
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chromium Headless Docker Library
![image](https://github.com/akornatskyy/chromium-headless/workflows/image/badge.svg)
## Images
These [images](https://hub.docker.com/r/akorn/chromium-headless) are based on
the [Alpine Linux](https://alpinelinux.org/) (linux/amd64, linux/arm64).## How to use
The default docker entrypoint:
```sh
chromium-browser --headless --headless \
--remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 \
--user-data-dir=/data --disable-software-rasterizer --disable-dev-shm-usage
```Run chromium in [sandbox](https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md) (requires SYS_ADMIN capability):
```sh
docker run -it --rm --name=chromium-headless \
-p=0.0.0.0:9222:9222 --cap-add=SYS_ADMIN \
-v /tmp/chromium-data/:/data akorn/chromium-headless:alpine
```You can add additional command line switches, e.g. prevent chromium from
loading images:```sh
docker run -it --rm --name=chromium-headless \
-p=0.0.0.0:9222:9222 --cap-add=SYS_ADMIN \
-v /tmp/chromium-data/:/data akorn/chromium-headless:alpine \
--blink-settings=imagesEnabled=false --mute-audio
```See [chromium command line switches](https://peter.sh/experiments/chromium-command-line-switches/)
for more information.