github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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  # network disconnect
     8  
     9  ```markdown
    10  Usage:  docker network disconnect [OPTIONS] NETWORK CONTAINER
    11  
    12  Disconnect a container from a network
    13  
    14  Options:
    15    -f, --force   Force the container to disconnect from a network
    16        --help    Print usage
    17  ```
    18  
    19  ## Description
    20  
    21  Disconnects a container from a network. The container must be running to
    22  disconnect it from the network.
    23  
    24  ## Examples
    25  
    26  ```bash
    27  $ docker network disconnect multi-host-network container1
    28  ```
    29  
    30  
    31  ## Related commands
    32  
    33  * [network inspect](network_inspect.md)
    34  * [network connect](network_connect.md)
    35  * [network create](network_create.md)
    36  * [network ls](network_ls.md)
    37  * [network rm](network_rm.md)
    38  * [network prune](network_prune.md)
    39  * [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)