April 2017
Beginner
404 pages
9h 30m
English
A container can be removed from the network using the following command. Remember to stop the container before disconnecting from the network. If we try to restart the stopped container after disconnecting from the network, it tries to reattach to the same network. To change the network of the container, use the connect command mentioned in the preceding code snippet:
docker network disconnect mynetwork <containername>
Use docker network rm to clean up the network completely, and clean up any Hyper-V virtual switches and NATs:
Docker network rm mynetwork
Read now
Unlock full access