Bootstrap FreeKB - Docker - Delete a network using the docker network rm command
Docker - Delete a network using the docker network rm command

Updated:   |  Docker articles

The docker network rm <name|ID> command can be used to remove a network. Let's say the docker network ls command returns the following.

NETWORK ID    NAME         DRIVER   SCOPE
r0zassvat4e5  foo-network  overlay  swarm
n3tno3xqjsu7  bar-network  overlay  swarm
ngfei70a2px2  network003   overlay  swarm

 

foo-network can be removed like this.

docker network rm foo-network

 

Or using the ID.

docker network rm r0zassvat4e5

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 7c3ef5 in the box below so that we can be sure you are a human.