DockerCLI/docs/reference/commandline/network_disconnect.md

938 B

network disconnect

Usage:  docker network disconnect [OPTIONS] NETWORK CONTAINER


Disconnects a container from a network

  -f, --force        Force the container to disconnect from a network
  --help             Print usage

Disconnects a container from a network. The container must be running to disconnect it from the network.

  $ docker network disconnect multi-host-network container1