Docker - Delete a network using the docker network rm command

by
Jeremy Canfield |
Updated: February 12 2022
| Docker articles
This assumes you have installed Docker on Linux, Docker is running, and you've created a docker network.
The docker network ls command can be used to display the docker networks.
docker network ls
Which should return something like this.
NETWORK ID NAME DRIVER SCOPE
233g3acb112a foo-network bridge local
The docker network rm command can be used to remove a network. In this example, foo-network will be removed.
docker network rm foo-network
Did you find this article helpful?
If so, consider buying me a coffee over at