Commandes Linux : docker network disconnect

DOCKER NETWORK DISCONNECT

Commande : docker network disconnect
Usage:	docker network disconnect [OPTIONS] NETWORK CONTAINER

Disconnect a container from a network

Options:
  -f, --force   Force the container to disconnect from a network

 

Déconnecter un container d’un réseau auquel il est attaché :

docker network disconnect [OPTIONS] network container

ex :

$ docker network disconnect mynet my_nginx
$ docker network disconnect mynet new_nginx
$ docker container exec new_nginx ping my_nginx
ping: bad address 'my_nginx'
$ docker container exec my_nginx ping new_nginx
ping: bad address 'new_nginx'

 

Fermer le menu
%d blogueurs aiment cette page :