Browse code

Fixing mismatched network name. Using `my-net` to be consistent with: https://docs.docker.com/engine/reference/run/

Signed-off-by: Robert Wallis <smilingrob@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Robert Wallis authored on 2016/02/16 06:17:05
Showing 1 changed files
... ...
@@ -326,17 +326,17 @@ Guide.
326 326
 ### Connect a container to a network (--net)
327 327
 
328 328
 When you start a container use the `--net` flag to connect it to a network.
329
-This adds the `busybox` container to the `mynet` network.
329
+This adds the `busybox` container to the `my-net` network.
330 330
 
331 331
 ```bash
332
-$ docker run -itd --net=my-multihost-network busybox
332
+$ docker run -itd --net=my-net busybox
333 333
 ```
334 334
 
335 335
 You can also choose the IP addresses for the container with `--ip` and `--ip6`
336 336
 flags when you start the container on a user-defined network.
337 337
 
338 338
 ```bash
339
-$ docker run -itd --net=my-multihost-network --ip=10.10.9.75 busybox
339
+$ docker run -itd --net=my-net --ip=10.10.9.75 busybox
340 340
 ```
341 341
 
342 342
 If you want to add a running container to a network use the `docker network connect` subcommand.