You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HUB_HOST and HUB_PORT to handle hub and nodes (SeleniumHQ#640)
* Introducing HUB_HOST and HUB_PORT to start deprecating HUB_PORT_4444_TCP_ADDR and HUB_PORT_4444_TCP_PORT, in favor of the future deprecation of links in docker.
* Updating main README to introduce HUB_HOST, HUB_PORT and more ways to start a grid.
$ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:3.8.1-bohrium
43
43
```
44
-
This is a known workaround to avoid the browser crashing inside a docker container, here are the documented issues for [Chrome](https://code.google.com/p/chromium/issues/detail?id=519952) and [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10). The shm size of 2gb is arbitrary but known to work well, your specific use case might need a different value, it is recommended to tune this value according to your needs. Along the examples `-v /dev/shm:/dev/shm` will be used, but both are known to work.
44
+
This is a known workaround to avoid the browser crashing inside a docker container, here are the documented issues for
45
+
[Chrome](https://code.google.com/p/chromium/issues/detail?id=519952) and [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10).
46
+
The shm size of 2gb is arbitrary but known to work well, your specific use case might need a different value, it is recommended
47
+
to tune this value according to your needs. Along the examples `-v /dev/shm:/dev/shm` will be used, but both are known to work.
45
48
46
49
47
50
### Standalone Chrome and Firefox
@@ -57,6 +60,68 @@ _Note: Only one standalone image can run on port_ `4444` _at a time._
57
60
To inspect visually what the browser is doing use the `standalone-chrome-debug` or `standalone-firefox-debug` images. See [Debugging](#debugging) section for details.
58
61
59
62
### Selenium Grid Hub and Nodes
63
+
There are different ways to run the images and create a grid, check the following options.
64
+
65
+
#### Using docker networking
66
+
With this option, the hub and nodes will be created in the same network and they will recognize each other by their container name.
67
+
A docker [network](https://docs.docker.com/engine/reference/commandline/network_create/) needs to be created as a first step.
0 commit comments