github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/docs/reference/commandline/network_disconnect.md (about) 1 <!--[metadata]> 2 +++ 3 title = "network disconnect" 4 description = "The network disconnect command description and usage" 5 keywords = ["network, disconnect, user-defined"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # network disconnect 12 13 Usage: docker network disconnect [OPTIONS] NETWORK CONTAINER 14 15 16 Disconnects a container from a network 17 18 -f, --force Force the container to disconnect from a network 19 --help Print usage 20 21 Disconnects a container from a network. The container must be running to disconnect it from the network. 22 23 ```bash 24 $ docker network disconnect multi-host-network container1 25 ``` 26 27 28 ## Related information 29 30 * [network inspect](network_inspect.md) 31 * [network connect](network_connect.md) 32 * [network create](network_create.md) 33 * [network ls](network_ls.md) 34 * [network rm](network_rm.md) 35 * [Understand Docker container networks](../../userguide/networking/dockernetworks.md)