Commit aeb5ac0
committed
docs: fix --add-host example to work in a single terminal session
The current example uses python3 -m http.server which runs in the
foreground, blocking the terminal and preventing the user from running
the subsequent docker command. The example only works if the user opens
a second terminal.
Replace with nc (netcat) which can be backgrounded with & disown,
allowing the entire example to run in a single terminal session. This
also removes the dependency on Python being installed on the host.
Fixes #55581 parent 950401c commit aeb5ac0
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
| 1294 | + | |
| 1295 | + | |
1300 | 1296 | | |
1301 | 1297 | | |
1302 | 1298 | | |
| |||
0 commit comments