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
{{ message }}
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
Note SeleniumHQ/docker-selenium project is more useful for building selenium grids while this one focuses on building disposable standalone selenium servers that you should `docker stop` as soon as your tests finishes. It also focuses on debugging via VNC which can be difficult on a Selenium Grid given you can't know in advance in which node will your test end up running and therefore can't know to which node to connect via VNC to actually see the test running.
17
17
18
-
### One-liner Install & Usage
18
+
### Run
19
19
20
-
In general: add `sudo` only if needed in your environment and `--privileged` or `-v /dev/shm:/dev/shm` if you really need it like when [Chrome crashes](https://github.com/elgalu/docker-selenium/issues/20) during your high gpu intensive tests.
20
+
In general add `sudo` only if needed in your environment and `--privileged` or `-v /dev/shm:/dev/shm` if you really need it like when [Chrome crashes](https://github.com/elgalu/docker-selenium/issues/20) during your high gpu intensive tests.
21
21
22
22
docker run -p 4444:24444 -p 5920:25900 -v /dev/shm:/dev/shm \
23
23
-e VNC_PASSWORD=hola elgalu/selenium:2.47.1h
24
24
25
-
### Non-privileged
26
-
### Run
27
-
28
-
If your setup is correct, privileged mode and sudo should not be necessary:
29
-
30
-
docker run --rm --name=ch -p=4444:24444 -p=5920:25900 \
31
-
elgalu/selenium:2.47.1h
32
-
33
25
Make sure `docker run` finishes with **selenium all done and ready for testing** else you won't be able to start your tests. To perform this check programatically please use this command where `ch` is the name of the container:
0 commit comments