2015-09-28 21:57:03 -04:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
title = "network disconnect"
|
|
|
|
description = "The network disconnect command description and usage"
|
2015-09-30 16:11:36 -04:00
|
|
|
keywords = ["network, disconnect, user-defined"]
|
2015-09-28 21:57:03 -04:00
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# network disconnect
|
|
|
|
|
|
|
|
Usage: docker network disconnect [OPTIONS] NETWORK CONTAINER
|
|
|
|
|
|
|
|
Disconnects a container from a network
|
|
|
|
|
|
|
|
--help=false Print usage
|
|
|
|
|
2015-10-18 19:47:32 -04:00
|
|
|
Disconnects a container from a network. The container must be running to disconnect it from the network.
|
2015-09-28 21:57:03 -04:00
|
|
|
|
2015-10-18 19:47:32 -04:00
|
|
|
```bash
|
2015-09-28 21:57:03 -04:00
|
|
|
$ docker network disconnect multi-host-network container1
|
|
|
|
```
|
|
|
|
|
2015-10-18 19:47:32 -04:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [network inspect](network_inspect.md)
|
|
|
|
* [network connect](network_connect.md)
|
|
|
|
* [network create](network_create.md)
|
|
|
|
* [network ls](network_ls.md)
|
|
|
|
* [network rm](network_rm.md)
|
|
|
|
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
|