Skip to content

Add workaround to chrome hanging issue on start #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ Images included:

## Running the images

When executing docker run for an image with chrome browser please add volume mount `-v /dev/shm:/dev/shm` to use the host's shared memory.

``` bash
$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.52.0
```
### Chrome workarounds
When executing docker run for an image with chrome browser please add volume mount `-v /dev/shm:/dev/shm` to use the host's shared memory.

This is a workaround to node-chrome crash in docker container issue: https://code.google.com/p/chromium/issues/detail?id=519952

In addition, add an environmental variable that directs DBUS to /dev/null - `DBUS_SESSION_BUS_ADDRESS=/dev/null`. This is a workaround for chrome starting issue:
https://github.com/SeleniumHQ/docker-selenium/issues/87

These fixes should be done for both standalone and GRID nodes.
For standalone:
``` bash
$ docker run -d -p 4444:4444 --env DBUS_SESSION_BUS_ADDRESS=/dev/null -v /dev/shm:/dev/shm selenium/standalone-chrome:2.52.0
```
For grid node:
``` bash
$ docker run -d -d --link selenium-hub:hub --env DBUS_SESSION_BUS_ADDRESS=/dev/null -v /dev/shm:/dev/shm selenium/node-chrome:2.52.0
```

### Standalone Chrome and Firefox

Expand Down