github.com/olljanat/moby@v1.13.1/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/docker Github
     8       repository at https://github.com/docker/docker/. 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  Disconnects a container from a network. The container must be running to disconnect it from the network.
    29  
    30  ```bash
    31    $ docker network disconnect multi-host-network container1
    32  ```
    33  
    34  
    35  ## Related information
    36  
    37  * [network inspect](network_inspect.md)
    38  * [network connect](network_connect.md)
    39  * [network create](network_create.md)
    40  * [network ls](network_ls.md)
    41  * [network rm](network_rm.md)
    42  * [network prune](network_prune.md)
    43  * [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)