Skip to content

Commit e5dfe85

Browse files
committed
Merge pull request SeleniumHQ#159 from kayabendroth/addVNCPortsToDebugInReadmeInstructions-v2
Add vnc ports to debug in readme instructions v2
2 parents 60a7706 + 351495c commit e5dfe85

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,30 @@ _Note: Since a Docker container is not meant to preserve state and spawning a ne
122122

123123
## Debugging
124124

125-
In the event you wish to visually see what the browser is doing you will want to run the `debug` variant of node or standalone images:
125+
In the event you wish to visually see what the browser is doing you will want to run the `debug` variant of node or standalone images (substitute a free port that you wish to connect to on VNC for <port4VNC>; 5900 is fine if it is free, but of course you can only run one node on that port):
126126
``` bash
127-
$ docker run -d -P --link selenium-hub:hub selenium/node-chrome-debug:2.50.1
128-
$ docker run -d -P --link selenium-hub:hub selenium/node-firefox-debug:2.50.1
127+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.50.1
128+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.50.1
129129
```
130+
e.g.:
131+
``` bash
132+
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug:2.48.2
133+
$ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-debug:2.48.2
134+
```
135+
136+
to connect to the Chrome node on 5900 and the Firefox node on 5901 (assuming those node are free, and reachable).
130137

131138
And for standalone:
132139
``` bash
133-
$ docker run -d -p 4444:4444 selenium/standalone-chrome-debug:2.50.1
140+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-chrome-debug:2.50.1
141+
# OR
142+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 selenium/standalone-firefox-debug:2.50.1
143+
```
144+
or
145+
``` bash
146+
$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:2.50.1
134147
# OR
135-
$ docker run -d -p 4444:4444 selenium/standalone-firefox-debug:2.50.1
148+
$ docker run -d -p 4444:4444 -p 5901:5900 selenium/standalone-firefox-debug:2.50.1
136149
```
137150

138151
You can acquire the port that the VNC server is exposed to by running:

0 commit comments

Comments
 (0)