mirror of https://github.com/docker/cli.git
Add docker network connect/disconnect to non-running container
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
5142d3a669
commit
b5843f62f8
|
@ -16,7 +16,7 @@ parent = "smn_cli"
|
||||||
|
|
||||||
--help Print usage
|
--help Print usage
|
||||||
|
|
||||||
Connects a running container to a network. You can connect a container by name
|
Connects a container to a network. You can connect a container by name
|
||||||
or by ID. Once connected, the container can communicate with other containers in
|
or by ID. Once connected, the container can communicate with other containers in
|
||||||
the same network.
|
the same network.
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ NETWORK CONTAINER
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
Connects a running container to a network. You can connect a container by name
|
Connects a container to a network. You can connect a container by name
|
||||||
or by ID. Once connected, the container can communicate with other containers in
|
or by ID. Once connected, the container can communicate with other containers in
|
||||||
the same network.
|
the same network.
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ NETWORK CONTAINER
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
Disconnects a container from a network. The container must be running to disconnect it from the network.
|
Disconnects a container from a network.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker network disconnect multi-host-network container1
|
$ docker network disconnect multi-host-network container1
|
||||||
|
|
Loading…
Reference in New Issue