DockerCLI/docs/reference/commandline/network_disconnect.md

863 B

network disconnect

Usage:  docker network disconnect [OPTIONS] NETWORK CONTAINER

Disconnects a container from a network

  --help=false       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