mirror of
https://github.com/docker/cli.git
synced 2026-09-26 01:10:35 -04:00
28600: Docs: network connect for container in Created/Stopped state
Signed-off-by: dattatrayakumbhar04 <dattatraya.kumbhar@gslab.com>
This commit is contained in:
committed by
Tibor Vass
parent
22478663c2
commit
1f2128a8c5
@@ -61,11 +61,8 @@ being connected to.
|
||||
```bash
|
||||
$ docker network connect --alias db --alias mysql multi-host-network container2
|
||||
```
|
||||
|
||||
You can pause, restart, and stop containers that are connected to a network.
|
||||
Paused containers remain connected and can be revealed by a `network inspect`.
|
||||
When the container is stopped, it does not appear on the network until you restart
|
||||
it.
|
||||
A container connects to its configured networks when it runs.
|
||||
|
||||
If specified, the container's IP address(es) is reapplied when a stopped
|
||||
container is restarted. If the IP address is no longer available, the container
|
||||
|
||||
Reference in New Issue
Block a user