mirror of https://github.com/docker/docs.git
Update networkingcontainers.md (#4132)
This commit is contained in:
parent
5b44477e18
commit
645a9aa056
|
@ -80,7 +80,7 @@ $ docker network inspect bridge
|
|||
]
|
||||
```
|
||||
|
||||
You can remove a container from a network by disconnecting the container. To do this, you supply both the network name and the container name. You can also use the container id. In this example, though, the name is faster.
|
||||
You can remove a container from a network by disconnecting the container. To do this, you supply both the network name and the container name. You can also use the container ID. In this example, though, the name is faster.
|
||||
|
||||
$ docker network disconnect bridge networktest
|
||||
|
||||
|
@ -190,7 +190,7 @@ Docker networking allows you to attach a container to as many networks as you li
|
|||
|
||||

|
||||
|
||||
Open a shell into the `db` application again and try the ping command. This time just use the container name `web` rather than the IP Address.
|
||||
Open a shell into the `db` application again and try the ping command. This time just use the container name `web` rather than the IP address.
|
||||
|
||||
$ docker exec -it db bash
|
||||
|
||||
|
|
Loading…
Reference in New Issue