github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/docs/reference/commandline/network_disconnect.md (about) 1 --- 2 title: "network disconnect" 3 description: "The network disconnect command description and usage" 4 keywords: "network, disconnect, user-defined" 5 --- 6 7 <!-- This file is maintained within the docker/cli GitHub 8 repository at https://github.com/docker/cli/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # network disconnect 17 18 ```markdown 19 Usage: docker network disconnect [OPTIONS] NETWORK CONTAINER 20 21 Disconnect a container from a network 22 23 Options: 24 -f, --force Force the container to disconnect from a network 25 --help Print usage 26 ``` 27 28 ## Description 29 30 Disconnects a container from a network. The container must be running to 31 disconnect it from the network. 32 33 ## Examples 34 35 ```bash 36 $ docker network disconnect multi-host-network container1 37 ``` 38 39 40 ## Related commands 41 42 * [network inspect](network_inspect.md) 43 * [network connect](network_connect.md) 44 * [network create](network_create.md) 45 * [network ls](network_ls.md) 46 * [network rm](network_rm.md) 47 * [network prune](network_prune.md) 48 * [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)