docker network disconnect

Estimated reading time: 1 minute

Description

Disconnect a container from a network

Usage

docker network disconnect [OPTIONS] NETWORK CONTAINER

Options

Name, shorthandDefaultDescription
--force , -fForce the container to disconnect from a network

Parent command

CommandDescription
docker networkManage networks
CommandDescription
docker network connectConnect a container to a network
docker network createCreate a network
docker network disconnectDisconnect a container from a network
docker network inspectDisplay detailed information on one or more networks
docker network lsList networks
docker network pruneRemove all unused networks
docker network rmRemove one or more networks

Extended description

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

Examples

  $ docker network disconnect multi-host-network container1