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
Copy file name to clipboardExpand all lines: README.md
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -122,17 +122,30 @@ _Note: Since a Docker container is not meant to preserve state and spawning a ne
122
122
123
123
## Debugging
124
124
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):
126
126
```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
129
129
```
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).
130
137
131
138
And for standalone:
132
139
```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
134
147
# 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
136
149
```
137
150
138
151
You can acquire the port that the VNC server is exposed to by running:
0 commit comments