2017-01-28 02:14:38 +00:00
|
|
|
# About headless
|
|
|
|
|
|
|
|
This is a version of the simple example but with the chromedp settings changed
|
2017-01-29 03:37:56 +00:00
|
|
|
to use the docker [knqz/chrome-headless](https://hub.docker.com/r/knqz/chrome-headless/) image.
|
2017-01-28 02:14:38 +00:00
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# retrieve docker image
|
2017-01-29 03:37:56 +00:00
|
|
|
docker pull knqz/chrome-headless
|
2017-01-28 02:14:38 +00:00
|
|
|
|
2017-01-29 03:37:56 +00:00
|
|
|
# start chrome-headless
|
|
|
|
docker run -d -p 9222:9222 --rm --name chrome-headless knqz/chrome-headless
|
2017-01-28 02:14:38 +00:00
|
|
|
|
|
|
|
# run chromedp headless example
|
|
|
|
go build && ./headless
|
|
|
|
```
|