docker network disconnect
Disconnect a container from a network
The client and daemon API must both be at least
to use this command. Use the
docker version command on the client to check
your client and daemon API versions.
docker network disconnect [OPTIONS] NETWORK CONTAINER
--force , -f
||Force the container to disconnect from a network
Disconnects a container from a network. The container must be running to
disconnect it from the network.
$ docker network disconnect multi-host-network container1