From 3969f77c86abcde86d69d0ec25a8388e287a866f Mon Sep 17 00:00:00 2001 From: Robert Wallis Date: Mon, 15 Feb 2016 13:17:05 -0800 Subject: [PATCH] Fixing mismatched network name. Using `my-net` to be consistent with: https://docs.docker.com/engine/reference/run/ Signed-off-by: Robert Wallis --- docs/reference/commandline/run.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 5d3fc733b4..4da4397193 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -326,17 +326,17 @@ Guide. ### Connect a container to a network (--net) When you start a container use the `--net` flag to connect it to a network. -This adds the `busybox` container to the `mynet` network. +This adds the `busybox` container to the `my-net` network. ```bash -$ docker run -itd --net=my-multihost-network busybox +$ docker run -itd --net=my-net busybox ``` You can also choose the IP addresses for the container with `--ip` and `--ip6` flags when you start the container on a user-defined network. ```bash -$ docker run -itd --net=my-multihost-network --ip=10.10.9.75 busybox +$ docker run -itd --net=my-net --ip=10.10.9.75 busybox ``` If you want to add a running container to a network use the `docker network connect` subcommand.