Code Monkey home page Code Monkey logo

chrome-headless-browser-docker's Introduction

chrome-headless-browser-docker

Build Status

This repository contains three docker builds.

Chrome Headless Browser

Docker Pulls

This docker image contains the Linux Dev channel Chromium (https://www.chromium.org/getting-involved/dev-channel), with the required dependencies and the command line argument running headless mode provided.

Chrome Headless Browser Stable

Docker Pulls

This docker image contains the Debian Chromium (https://wiki.debian.org/Chromium). Since the binary is obtained from Debian channel, it gets updated less frequently. On the other hand, the channel provides both AMD64 and ARM64 based binaries, such that it would work for Apple M1 environment.

Chrome Headless Browser XL

Docker Pulls

This docker image contains extra fonts thus the image size is much larger.

Chrome Headless Browser with Chrome Driver in Selenium

Docker Pulls

Credits to SeleniumHQ https://github.com/SeleniumHQ/docker-selenium. The Dockerfile and configuration are taken from their repository, with modification to use google-chrome-unstable and removing unnecessary dependencies.


How to run the container:

To run the container with remote-debugging:

docker run --init -it --rm --name chrome --shm-size=1024m -p=127.0.0.1:9222:9222 --cap-add=SYS_ADMIN \
  yukinying/chrome-headless-browser

To run the container with other options, e.g. --dump-dom:

docker run --init -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN \
  --entrypoint=/usr/bin/google-chrome \
  yukinying/chrome-headless-browser \
  --headless --disable-gpu --dump-dom https://www.facebook.com

See the following sections for alternate ways to start the container.

Why cap-add=SYS_ADMIN is needed

Currently, there is a user namespace issue in OSX that generates this error:

Failed to move to new namespace: PID namespaces supported, Network namespace supported,
but failed: errno = Operation not permitted

There are two mitigations, but none of them are ideal as it gives the container some special capabilities:

  1. Use a special seccomp profile, as stated in https://twitter.com/jessfraz/status/681934414687801345
docker run --init -it --rm --name chrome --shm-size=1024m -p=127.0.0.1:9222:9222 --security-opt seccomp:/path/to/chrome.json \
  yukinying/chrome-headless-browser
  1. Use CAP_SYS_ADMIN
docker run --init -it --rm --name chrome --shm-size=1024m -p=127.0.0.1:9222:9222 --name chrome --cap-add=SYS_ADMIN \
  yukinying/chrome-headless-browser

Getting More Verbose Output

Try adding the following flag: --enable-logging --v=10000

How to run the container with Selenium:

Standalone mode:

docker run -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN \
  -p=127.0.0.1:4444:4444 \
  yukinying/chrome-headless-browser-selenium

Node mode:

# First, start your hub.
docker run -it --rm --name hub \
  -p=127.0.0.1:4444:4444 \
  selenium/hub

# Then run your node by registering it to the hub
docker run -it --rm --name node-chrome --link hub:hub --cap-add=SYS_ADMIN \
  yukinying/chrome-headless-browser-selenium \
  -role node -hub http://hub:4444/grid/register \
  -nodeConfig /opt/selenium/config.json

Does the image work with Apple M1?

Please use "Chrome Headless Browser Stable" image.

Headless Shell

If you would like to use headless_shell instead of chrome --headless in Docker, please check out https://github.com/yukinying/chrome-headless-travis-build.

chrome-headless-browser-docker's People

Contributors

davyzhang avatar elgalu avatar janpot avatar stephen avatar yukinying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chrome-headless-browser-docker's Issues

Install a chinese font

Fonts on Chinese websites are rendered as boxes. It can be fixed by adding a font like apt-get install fonts-wqy-zenhei

before:
screen shot 2017-02-27 at 16 45 33

after:
screen shot 2017-02-27 at 16 44 13

error while loading shared libraries: libgconf-2.so.4

Hi,

Selenium version doesn't work for me, here is the error:

21:08:58.196 INFO - Mismatched capabilities. Creating a synthetic w3c capability.
21:08:58.198 INFO - Capabilities are: Capabilities {rotatable=false, nativeEvents=false, browserName=chrome, takesScreenshot=false, javascriptEnabled=true, platformName=ANY, version=, platform=ANY, cssSelectorsEnabled=true, }
21:08:58.199 INFO - Capabilities {rotatable=false, nativeEvents=false, browserName=chrome, takesScreenshot=false, javascriptEnabled=true, platformName=ANY, version=, platform=ANY, cssSelectorsEnabled=true, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
21:08:58.200 INFO - Capabilities {rotatable=false, nativeEvents=false, browserName=chrome, takesScreenshot=false, javascriptEnabled=true, platformName=ANY, version=, platform=ANY, cssSelectorsEnabled=true, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
/opt/selenium/chromedriver-2.32: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Can't use with M2 Mac

I'm getting this error when attempting to use the latest image on my M2 Macbook:

chrome The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

chromedriver failed to build

Sending build context to Docker daemon 5.12 kB
Step 1/17 : FROM yukinying/chrome-headless-browser:latest
---> 574b60a9a4e3
Step 2/17 : MAINTAINER Albert Yu [email protected]
---> Using cache
---> 05bc4591647a
Step 3/17 : USER root
---> Using cache
---> 3facfa9e6331
Step 4/17 : RUN mkdir -p /usr/share/man/man1 && echo "deb https://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/jessie-backports.list && apt-get update -qqy && apt-get -qqy --no-install-recommends install openjdk-8-jre-headless unzip wget && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
---> Running in 06a0650b5f95
W: Size of file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_jessie-backports_InRelease is not what the server reported 166023 75581
W: Size of file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_jessie-backports_main_binary-amd64_Packages.gz is not what the server reported 1137358 1031419
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c mkdir -p /usr/share/man/man1 && echo "deb https://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/jessie-backports.list && apt-get update -qqy && apt-get -qqy --no-install-recommends install openjdk-8-jre-headless unzip wget && rm -rf /var/lib/apt/lists/* /var/cache/apt/*' returned a non-zero code: 100

Downloading files not working as expected

Hi,

We are using the chrome image (yukinying/chrome-headless-browser:117.0.5938.0) in combination with Playwright for our UI tests. Everything works so far - except when it comes to downloads. Usually we would do the following:

final Download download = page.waitForDownload( ( ) -> {
	page.locator( "button:has-text(\"Export\")" ).click( );
} );
assertThat( download.path( ) ).isNotNull( );

If we use the connectOverCDP functionality, this does not work as the download simply does not happen. The failure method of download simply says canceled. The log of the image does not tell us what went wrong:

2023-10-05 09:45:48 [1005/074548.563081:ERROR:bus.cc(406)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
2023-10-05 09:45:48 [1005/074548.576462:ERROR:bus.cc(406)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
2023-10-05 09:45:48 [1005/074548.576553:ERROR:bus.cc(406)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
2023-10-05 09:45:48
2023-10-05 09:45:48 DevTools listening on ws://0.0.0.0:9222/devtools/browser/d95a8226-9233-4397-b4b7-432deb203726
2023-10-05 09:45:48 [1005/074548.581200:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
2023-10-05 09:45:48 [1005/074548.635533:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.

In all other cases (e.g. not-headless) and with other images this seems to work as expected.

I am aware that this is slightly out of scope, but still: Can you help us and tell what and why exactly this is not working? Can we somehow solve this this or is this just not possible with this image?

Thank you and best regards

Nils

Debian stable is now bullseye

Hi!

We build a docker image from yukinying/chrome-headless-browser and install further packages, but apt-get update is failing with the following:

#5 0.362 Ign:1 http://security.debian.org/debian-security stable/updates InRelease
#5 0.362 Get:2 http://deb.debian.org/debian stable InRelease [113 kB]
#5 0.363 Err:3 http://security.debian.org/debian-security stable/updates Release
#5 0.363   404  Not Found [IP: 151.101.18.132 80]
#5 0.375 Get:4 http://deb.debian.org/debian stable-updates InRelease [36.8 kB]
#5 0.485 Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8178 kB]
#5 1.582 Reading package lists...
#5 2.185 E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.

Is it possible to push a rebuild of this docker image to docker hub based on the new debian:stable-slim which is bullseye and doesn't reference the 404 path in /etc/apt/sources.list?

Thanks!

Provide a stable chrome version, too

As far as I understand chrome/Dockerfile you install chrome unstable (apt-get -qqy install google-chrome-unstable). Why not offering a Dockerfile for stable, too?

crashes the target on some urls

been running the container as docker run --privileged -p 9222:9222 yukinying/chrome-headless-browser:58.0.3018.3
Then visit localhost:9222 and select the target. Then visit the url http://li-bracelet.com/ in the debugger window. The page starts loading but then the target crashes (tried with the remote protocol and received Inspector.targetCrashed events as well)

image

Doesn't happen in Chrome run outside a container

Container failing to boot

When I attempt to run yukinying/chrome-headless-browser-stable on tag 110.0.5481.77 I receive an Error: Can't open display: in the logs of Docker. This isn't exclusive to that specific to the 110 tag as it also gives me the same error on tag 100.0.4896.127.

I'm on a M1 Mac running version 13.2.1.

Any ideas why this container is failing to boot?

docker.for.mac.localhost not connecting from inspector

👋 hello @yukinying thanks for the great work on this container.

Docker for Mac and Docker for Windows resolve the DNS , docker.for.mac.localhost and docker.for.win.localhost to the host machine's localhost.

These variables would be a very convenient way to run chrome in a headless context, for screenshot testing, without needing to containerize the rest of the local environment.

Behavior I'm Observing

I'm able to run your container and access docker.for.mac.localhost with wget, but in an inspector session I get net::ERR_CONNECTION_REFUSED at http://docker.for.mac.localhost:4000/.

Expected Behavior

http://docker.for.mac.localhost:4000/ would resolve to 127.0.0.1 on the host machine.

cant pass parameters into the chrome drive for image: Chrome Headless Browser with Chrome Driver in Selenium

Tell me please how to pass command line options into it.

docker run -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN -p=127.0.0.1:4444:4444 yukinying/chrome-headless-browser-selenium --whitelisted-ips=""

where I want to add: --whitelisted-ips=""

it causes error:

SYS_ADMIN -p=127.0.0.1:4444:4444 yukinying/chrome-headless-browser-selenium --whitelisted-ips=""
Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter '--whi
telisted-ips=' but no main parameter was defined in your arg class
at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:936)

Pages not rendering with newest version of Chrome

It looks like something has recently broken. This docker container has been working great for a few months as a headless REPL, but now suddenly as of a few days ago pages will not render and the page content seems to be about:blank.

I think the difference is somewhere between Chrome 61 and 64. Here is the output if I run chrome headless with a --dump-dom on my Mac:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Google Chrome 61.0.3163.100
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --dump-dom https://google.com
<body class="hp vasq" onload="document.f&amp;&amp;document.f.q.focus();document.gbqf&amp;&amp;document.gbqf.q.focus();if(document.images)new Image().src='/images/nav_logo242.png'" id="gsr"><div class="ctr-p" id="viewport... (it works)

Here is what I get from inside the docker container as the headless user:

/opt/google/chrome-unstable/chrome --version                                            
Google Chrome 64.0.3253.3 unknown
headless@70952445e0fe:/app$ /opt/google/chrome-unstable/chrome --headless --disable-gpu --dump-dom https://google.com
<html><head></head><body></body></html>

Note that the docker container IS able to wget -O - the same content as my Mac version 61, so it's not a connectivity or TLS issue of some kind.

I am going to raise this in the Chrome bug reporting system, but I think we know how long that will take to get attention. In the mean time, is there a version of this container with a pinned version of Chrome?

remove sudo privilege from user headless

These lines should not be needed in Dockefile.

  && usermod -a -G sudo headless \
  && echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \
  && echo 'headless:nopassword' | chpasswd

Use TravisCI Cron Jobs

Instead of relying on a personal machine for the releases you may find useful to use TravisCI new feature: Cron Jobs:

image

Nice work BTW, I could close an issue thanks you will be maintaining this repo.

WebGL disabled in chrome-headless-browser-stable image

I have a requirement to take visual regression snapshots for pages that need WebGL enabled, in both Apple M1 machines and in Linux (for CI/CD). This image yukinying/chrome-headless-browser-stable seems to be suitable for both. But I'm encountering an issue with WebGL not being enabled by default.

Steps to reproduce

  1. Run docker pull yukinying/chrome-headless-browser-stable:latest
  2. Run docker run -it --privileged -p 9222:9222 yukinying/chrome-headless-browser-stable:latest sh
  3. In chrome://inspect, under remote target -> launched this URL https://webglreport.com/ which shows WebGL not enabled.

image

image

The same steps work fine with the latest yukinying/chrome-headless-browser image. WebGL seems to be enabled by default.
Screenshots below :-
image
image

Wondering what could be the issue with yukinying/chrome-headless-browser-stable image. Appreciate any input on this.

dbus errors when running chrome-headless-browser-stable (M2 Mac)

Hi. First off, thank you for making this set of Docker images.

I'm running the Docker image on an M2 mac using the example command line from the README:

docker run --init -it --rm --name headless-chrome -p=127.0.0.1:9222:9222 --shm-size=1024m --cap-add=SYS_ADMIN yukinying/chrome-headless-browser-stable

I get the following errors (and some warnings, which I'm including mainly just to have the complete log trace)

[0226/162323.265879:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[0226/162323.265997:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[0226/162323.266971:INFO:policy_logger.cc(145)] :components/policy/core/common/config_dir_policy_loader.cc(118) Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed
[0226/162323.266989:INFO:policy_logger.cc(145)] :components/policy/core/common/config_dir_policy_loader.cc(118) Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended
[0226/162323.269185:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.

DevTools listening on ws://0.0.0.0:9222/devtools/browser/cdd4acfa-2450-4f08-8bab-3a2cc77195d8

Please advise, help is appreciated :) thank you!

Soooo many chrome-sandbox processes still on top after all tests are done.

do you know what this issue exact is as title said? i guess event if i quit driver manually at codes but chrome doesn't act immediately.

Top Status List Below

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                         
17696 docker    20   0  898576 106200  33820 R   9.2  0.7   0:27.17 chrome                                                                                                          
 6974 docker    20   0 6665036 248280  15056 S   1.0  1.5   3:25.96 java                                                                                                            
17386 docker    20   0  150224  10928   7020 S   1.0  0.1   0:05.40 chromedriver-2.                                                                                                 
17423 docker    20   0  647064  55632  35840 S   1.0  0.3   0:08.50 chrome                                                                                                          
19468 docker    20   0  158828   3408   1568 R   0.7  0.0   0:00.10 top                                                                                                             
  648 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
  649 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
  651 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
  680 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
  682 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
  684 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1035 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1036 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1038 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1175 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1176 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1178 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1483 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1484 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1488 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1563 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1564 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1567 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1687 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1688 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1690 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1724 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1725 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1727 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1798 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1799 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1801 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 1900 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1901 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 1903 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 2060 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2061 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2063 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 2148 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2149 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2151 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 2203 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2204 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2206 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox                                                                                                  
 2287 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2288 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 cat                                                                                                             
 2290 docker    20   0       0      0      0 Z   0.0  0.0   0:00.00 chrome-sandbox

Unable to connect to chrome over websocket url

Hi,
im am using chrome-headless-browser-docker for testing purposes. My Playwright Tests run on a Jenkins server. But I get the following error message:

com.microsoft.playwright.PlaywrightException: 
Error {
  message='
╔════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Looks like you launched a headed browser without having a XServer running.                     ║
║ Set either 'headless: true' or use 'xvfb-run <your-playwright-app>' before running Playwright. ║
║                                                                                                ║
║ <3 Playwright Team                                                                             ║
╚════════════════════════════════════════════════════════════════════════════════════════════════╝
=========================== logs ===========================
<ws connecting> ws://172.17.6.20:33522/devtools/browser/80e8fb4f-dae8-41f0-97aa-2be581ef934c
<ws connected> ws://172.17.6.20:33522/devtools/browser/80e8fb4f-dae8-41f0-97aa-2be581ef934c
============================================================

I do not understand why this happens as chrome-headless-browser-docker is always headless or not?

chrome crashed after the first round testing

Hi @yukinying ,

I used your images FROM yukinying/chrome-headless-browser:65.0.3322.3 to create a container for chrome-headless-browser.

And I have another container running "jest-nust-puppeter" to do testing. We modify "jest-nust-puppeteer" so that I will not launch its own chrome, but connect to the chrome created using your image.

The first round of the testing was successful, but after that chrome crashed.

I turned on the debug log and find there are below information. But I cannot see any information that resulted on the chrome crash. Do you have any idea ?

cat chrome_debug.log

[0517/025242.753938:VERBOSE1:zygote_main_linux.cc(601)] ZygoteMain: initializing 0 fork delegates
[0517/025242.760299:INFO:cpu_info.cc(50)] Available number of cores: 2
[0517/025242.862242:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.
[0517/025242.864176:VERBOSE1:pulse_stubs.cc(683)] dlopen(libpulse.so.0) failed, dlerror() says:
libpulse.so.0: cannot open shared object file: No such file or directory
[0517/025242.864257:VERBOSE1:pulse_util.cc(106)] Failed on loading the Pulse library and symbols
[0517/025242.864301:VERBOSE1:webrtc_internals.cc(110)] Could not get the download directory.
[0517/025243.016002:VERBOSE1:breakpad_linux.cc(1993)] Non Browser crash dumping enabled for: renderer
[0517/025243.219769:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Google 'Aviator' log
[0517/025243.219975:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Google 'Icarus' log
[0517/025243.220093:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Google 'Pilot' log
[0517/025243.220289:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Google 'Rocketeer' log
[0517/025243.220777:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Google 'Skydiver' log
[0517/025243.221461:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: DigiCert Log Server
[0517/025243.221566:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: DigiCert Log Server 2
[0517/025243.221614:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Symantec log
[0517/025243.222107:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Symantec 'Vega' log
[0517/025243.222260:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Symantec 'Sirius' log
[0517/025243.222663:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: WoSign log
[0517/025243.222766:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Venafi Gen2 CT log
[0517/025243.223182:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: CNNIC CT log
[0517/025243.223339:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: StartCom log
[0517/025243.223700:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Comodo 'Sabre' CT log
[0517/025243.224264:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Comodo 'Mammoth' CT log
[0517/025243.224429:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Izenpe log
[0517/025243.225012:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Venafi log
[0517/025243.225249:VERBOSE1:multi_log_ct_verifier.cc(75)] Adding CT log: Certly.IO log
[0517/025243.225742:VERBOSE1:proxy_service.cc(957)] PAC support disabled because there is no system implementation
[0517/025243.837404:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.849085:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.852065:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.859123:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.859263:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.867224:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.926017:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.982807:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025243.994857:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025244.006408:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025244.015715:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025244.018377:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025244.019249:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025244.050565:VERBOSE2:ThreadState.cpp(485)] [state:0x5621d189dbc0] SchedulePageNavigationGCIfNeeded: estimatedRemovalRatio=0.75
[0517/025503.019761:VERBOSE1:breakpad_linux.cc(1993)] Non Browser crash dumping enabled for: renderer
[0517/025503.048297:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.048576:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.049937:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.051286:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.052607:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.053220:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.055213:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.056582:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.057326:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.059009:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.060826:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.061907:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.062353:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.064936:VERBOSE2:ThreadState.cpp(485)] [state:0x5621d189dbc0] SchedulePageNavigationGCIfNeeded: estimatedRemovalRatio=0.75
[0517/025503.106386:VERBOSE1:LocalWindowProxy.cpp(228)] A context is created NOT from snapshot
[0517/025503.115858:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/
[0517/025503.551539:VERBOSE7:cookie_monster.cc(1403)] SetCookie() key: google.com.au cc: name: 1P_JAR value: 2018-05-17-02 domain: .google.com.au path: / creation: 1526525703
[0517/025503.552116:VERBOSE7:cookie_monster.cc(1403)] SetCookie() key: google.com.au cc: name: NID value: 130=L0k7kHBuTsxAsij81IP6brRnErwJqQK86V1OyeQxzj1hJUwwiPytwwVpOrTz-hXVZ3ku2AKgGOiwVOZ0W34BwmpM0f0H9aAD86Hld-HjzGlm7FD3YIHr_3PVoVu2WEc6 domain: .google.com.au path: / creation: 1526525703
[0517/025503.560558:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: blob:https://www.google.com.au/dc5df5ae-21cb-4374-b297-073411064a72
[0517/025503.564833:VERBOSE2:ThreadState.cpp(485)] [state:0x5621d189dbc0] SchedulePageNavigationGCIfNeeded: estimatedRemovalRatio=0.38
[0517/025503.567605:VERBOSE1:LocalWindowProxy.cpp(228)] A context is created NOT from snapshot
[0517/025503.614521:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.614748:VERBOSE2:ThreadState.cpp(384)] [state:0x5621d189dbc0] JudgeGCThreshold: heapGrowingRate=1e+02 partitionAllocGrowingRate=1
[0517/025503.615780:VERBOSE2:ThreadState.cpp(556)] [state:0x5621d189dbc0] ScheduleGCIfNeeded: Scheduled idle GC
[0517/025503.624148:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png
[0517/025503.625221:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
[0517/025503.627722:VERBOSE2:ThreadState.cpp(442)] [state:0x5621d189dbc0] ScheduleV8FollowupGCIfNeeded: v8_gc_type=MinorGC
[0517/025503.629777:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.648199:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://ssl.gstatic.com/gb/images/i1_1967ca6a.png
[0517/025503.672274:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/xjs/_/js/k=xjs.s.en.Pi2KgUZDxV0.O/m=sx,sb,cdos,cr,elog,hsm,jsa,r,d,csi/am=wCKyHf8A5P8vGBAFVjDCAtNgGBo/rt=j/d=1/rs=ACT90oHz1Yd-14B4F9kH4JRp51Lt1uR45Q
[0517/025503.701265:VERBOSE1:ThreadState.cpp(1295)] [state:0x5621d189dbc0] CollectGarbage: time: 7.8ms stack: NoHeapPointersOnStack type: GCWithoutSweep reason: IdleGC
[0517/025503.707318:VERBOSE1:ThreadState.cpp(963)] [state:0x5621d189dbc0] PostSweep: collection_rate: 29%
[0517/025503.808452:VERBOSE2:ThreadState.cpp(442)] [state:0x5621d189dbc0] ScheduleV8FollowupGCIfNeeded: v8_gc_type=MinorGC
[0517/025503.823970:VERBOSE2:ThreadState.cpp(442)] [state:0x5621d189dbc0] ScheduleV8FollowupGCIfNeeded: v8_gc_type=MinorGC
[0517/025503.855511:VERBOSE2:ThreadState.cpp(442)] [state:0x5621d189dbc0] ScheduleV8FollowupGCIfNeeded: v8_gc_type=MinorGC
[0517/025503.869930:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/gen_204?s=webaft&atyp=csi&ei=9-78WvGfOcr58gXbub7gDg&rt=wsrt.485,aft.268,prt.174
[0517/025503.875695:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/images/nav_logo242.png
[0517/025503.888709:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/xjs/_/js/k=xjs.s.en.Pi2KgUZDxV0.O/m=aa,abd,async,dvl,foot,fpe,ipv6,lu,m,mu,sf,sonic,spch,d3l,udlg/am=wCKyHf8A5P8vGBAFVjDCAtNgGBo/rt=j/d=1/exm=sx,sb,cdos,cr,elog,hsm,jsa,r,d,csi/ed=1/rs=ACT90oHz1Yd-14B4F9kH4JRp51Lt1uR45Q?xjs=s1
[0517/025503.910692:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.911151:VERBOSE2:ThreadState.cpp(384)] [state:0x5621d189dbc0] JudgeGCThreshold: heapGrowingRate=1 partitionAllocGrowingRate=1
[0517/025503.937708:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com.au/gen_204?atyp=csi&ei=9-78WvGfOcr58gXbub7gDg&s=webhp&imc=2&imn=2&imp=2&adh=&conn=onchange&ima=1&ime=0&imeb=0&imeo=0&rt=aft.268,dcl.179,iml.272,ol.275,prt.174,xjs.327,xjsee.326,xjses.205,xjsls.71,wsrt.485,cst.184,dnst.8,rqst.392,rspt.187,sslt.168,rqstt.231,unt.0,cstt.47,dit.663&zx=1526525703937
[0517/025503.939687:VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.google.com/textinputassistant/tia.png
[0517/025503.977255:VERBOSE2:ThreadState.cpp(522)] [state:0x5621d189dbc0] ScheduleGCIfNeeded
[0517/025503.977718:VERBOSE2:ThreadState.cpp(384)] [state:0x5621d189dbc0] JudgeGCThreshold: heapGrowingRate=1 partitionAllocGrowingRate=1
[0517/025503.989487:VERBOSE2:ThreadState.cpp(442)] [state:0x5621d189dbc0] ScheduleV8FollowupGCIfNeeded: v8_gc_type=MinorGC

No License

I'd love to use parts of your Dockerfile for a build pipeline, but unfortunately, you haven't specified a license. Any chance you could license this repository?

Chrome failed to start: exited abnormally error

Hi,
I am working on a project using Chrome headless. I use it in a java application with Selenium HQ's Chrome Standalone image and it works fine.
I was asked to switch images for one better optimized with Chrome Headless, and yours was chosen as model on which building ours.
But I cannot get your image to work with my application. Do you know where it could come from ?
Below is the stack trace.

2017-06-23 14:42:30.650 WARN 18400 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webDriverPool': Invocation of init method failed; nested exception is org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 3.10.0-514.6.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.04 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: '67f035fa8025', ip: '172.17.0.33', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-514.6.1.el7.x86_64', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
Command duration or timeout: 61.04 seconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'L83537', ip: '10.24.164.101', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
2017-06-23 14:42:30.652 INFO 18400 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service Tomcat
2017-06-23 14:42:30.687 INFO 18400 --- [ restartedMain] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-06-23 14:42:30.699 ERROR 18400 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webDriverPool': Invocation of init method failed; nested exception is org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 3.10.0-514.6.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.04 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: '67f035fa8025', ip: '172.17.0.33', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-514.6.1.el7.x86_64', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
Command duration or timeout: 61.04 seconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'L83537', ip: '10.24.164.101', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)
at com.wl.datadock.ms.extraction.web.core.ExtractionWebApplication.main(ExtractionWebApplication.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 3.10.0-514.6.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.04 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: '67f035fa8025', ip: '172.17.0.33', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-514.6.1.el7.x86_64', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
Command duration or timeout: 61.04 seconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'L83537', ip: '10.24.164.101', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:158)
at com.wl.datadock.ms.extraction.web.core.chrome.WebDriverPool.initWebDriver(WebDriverPool.java:69)
at com.wl.datadock.ms.extraction.web.core.chrome.WebDriverPool.initWebDriverPool(WebDriverPool.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
... 23 common frames omitted
Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 3.10.0-514.6.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.04 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: '67f035fa8025', ip: '172.17.0.33', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-514.6.1.el7.x86_64', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'L83537', ip: '10.24.164.101', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:137)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:184)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:148)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:102)
at org.openqa.selenium.remote.server.DefaultDriverProvider.newInstance(DefaultDriverProvider.java:96)
at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:209)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

debconf: delaying package configuration, since apt-utils is not installed

getting the warnings

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype

Error During Build

Hi,

I have builded on Raspberry pi (ARM arch), and I got this error :

E: Unable to locate package google-chrome-unstable
ERROR: Service 'chrome' failed to build: The command '/bin/sh -c wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list   && apt-get update -qqy   && apt-get -qqy install google-chrome-unstable   && rm /etc/apt/sources.list.d/google-chrome.list   && rm -rf /var/lib/apt/lists/* /var/cache/apt/*' returned a non-zero code: 100

Do you know why ?

Regards

Headless mode, cannot resize window

Trying to resize window handle to generate larger screenshots:

Getting exception from selenium client:
browser.Manage().Window.Size <- new Drawing.Size(1400, 900)
Additional information: unknown error: cannot get automation extension

some errors maybe related to wrong build?

i posted here and thought maybe related to wrong build,

e.g. can't find some file

ERROR:gl_implementation.cc(246)] Failed to load /opt/google/chrome-unstable/libosmesa.so: /opt/google/chrome-unstable/libosmesa.so: cannot open shared object file: No such file or directory

How to access vagrant web server from the container?

Dear @yukinying,

I'm running container by:

sudo docker run -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN --net="host" -p=127.0.0.1:4444:4444 yukinying/chrome-headless-browser-selenium

Added --net argument based on https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach

The docker host in vagrant machine.
I would like to access web server running on vagrant by its url defined in virtual host configuration, but it's not available.

Could you help me out?

Cheers!

Error: Running as root without --no-sandbox is not supported

Hi

I'm getting the following:

[0808/045944.133174:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

I noticed your Travis are also failing with this build:

docker run --init -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN --entrypoint=/usr/bin/google-chrome-unstable $REPO:latest   --headless --disable-gpu --dump-dom http://info.cern.ch/hypertext/WWW/TheProject.html
[0808/045944.133174:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
The command "docker run --init -it --rm --name chrome --shm-size=1024m --cap-add=SYS_ADMIN --entrypoint=/usr/bin/google-chrome-unstable $REPO:latest   --headless --disable-gpu --dump-dom http://info.cern.ch/hypertext/WWW/TheProject.html" exited with 1.

Can you advise how best to resolve this?

Thanks.

Create a selenium node version

It would be great to have a version that registers with a hub and works in a selenium grid.

It may be as simple as restoring the lines 37-46 commented out in the Dockerfile. The standalone version of this image uses several hundred megabytes less of memory per instance than our existing chrome nodes. As we currently have 50+ nodes in our grid that could be a massive memory savings, which would allow us to either run more nodes, or use that memory for other applications.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.