Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/femtopixel/docker-google-chrome-headless
Google Chrome Headless - Docker Image
https://github.com/femtopixel/docker-google-chrome-headless
chrome docker docker-image google google-chrome google-chrome-headless headless headless-browsers headless-chrome
Last synced: about 10 hours ago
JSON representation
Google Chrome Headless - Docker Image
- Host: GitHub
- URL: https://github.com/femtopixel/docker-google-chrome-headless
- Owner: femtopixel
- License: mit
- Created: 2017-11-08T18:09:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T11:00:15.000Z (6 months ago)
- Last Synced: 2024-05-22T11:14:31.363Z (6 months ago)
- Topics: chrome, docker, docker-image, google, google-chrome, google-chrome-headless, headless, headless-browsers, headless-chrome
- Language: Dockerfile
- Homepage: https://brands.jaymoulin.me/femtopixel/docker-google-chrome-headless/
- Size: 335 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
> [!CAUTION]
> As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.
> [!NOTE]
> (This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)
> [!TIP]
> THIS REPOSITORY IS AUTO-UPDATED BY A BOT WHEN A NEW GOOGLE CHROME RELEASE IS UNLEASHED![logo](logo.png)
Google Chrome Headless - Docker Image
================================[![latest release](https://img.shields.io/github/release/femtopixel/docker-google-chrome-headless.svg "latest release")](http://github.com/femtopixel/docker-google-chrome-headless/releases)
[![Docker Pulls](https://img.shields.io/docker/pulls/femtopixel/google-chrome-headless.svg)](https://hub.docker.com/r/femtopixel/google-chrome-headless/)
[![Docker Stars](https://img.shields.io/docker/stars/femtopixel/google-chrome-headless.svg)](https://hub.docker.com/r/femtopixel/google-chrome-headless/)
[![PayPal donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png "PayPal donation")](https://www.paypal.me/jaymoulin)
[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png "Buy me a coffee")](https://www.buymeacoffee.com/jaymoulin)
[![Buy me a coffee](https://ko-fi.com/img/githubbutton_sm.svg "Buy me a coffee")](https://www.ko-fi.com/jaymoulin)[Google Chrome Headless](https://developers.google.com/web/updates/2017/04/headless-chrome) is the Google Chromium browser that can be started without graphical interface to accomplish several tasks (PDF printing, performance, automation...)
Usage
-----```
docker run --rm --name chrome -it -p 9222:9222 femtopixel/google-chrome-headless
```With `` url to your site (e.g. http://www.google.com). By default `about:blank`. You can pass args **BEFORE** the `url` if you want to use some.
By default, Chrome Headless listen on the `9222` port but this can be changed by passing the `CHROME_DEBUG_PORT` environment to the value you want.
### Example
```
docker run --rm --name chrome -it -p 9000:9000 -e CHROME_DEBUG_PORT=9000 femtopixel/google-chrome-headless
```Appendixes
----------You may need to add security context to your usage by adding `--cap-add SYS_ADMIN`
```
docker run --rm --name chrome -it -p 9222:9222 --cap-add SYS_ADMIN femtopixel/google-chrome-headless
```or Jessie Frazelle SECCOMP profile for Chrome:
```
wget https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json -O ~/chrome.json
docker run --rm --name chrome -it --security-opt seccomp=$HOME/chrome.json femtopixel/google-chrome-headless
```