...
1# network disconnect
2
3<!---MARKER_GEN_START-->
4Disconnect a container from a network
5
6### Options
7
8| Name | Type | Default | Description |
9|:----------------|:-----|:--------|:-------------------------------------------------|
10| `-f`, `--force` | | | Force the container to disconnect from a network |
11
12
13<!---MARKER_GEN_END-->
14
15## Description
16
17Disconnects a container from a network. The container must be running to
18disconnect it from the network.
19
20## Examples
21
22```console
23$ docker network disconnect multi-host-network container1
24```
25
26
27## Related commands
28
29* [network inspect](network_inspect.md)
30* [network connect](network_connect.md)
31* [network create](network_create.md)
32* [network ls](network_ls.md)
33* [network rm](network_rm.md)
34* [network prune](network_prune.md)
35* [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)
View as plain text