Reputation: 16515
I am using docker(-compose) mostly for development, so I have a bunch of Projects with one or more containers each on my development machine. I have stopped and removed all containers, but running docker network ls
still yields:
and looking at the »connection information« window shows:
How can I »purge« all unneeded interfaces, which were created by a docker run …
or docker-compose up
?
Upvotes: 0
Views: 438
Reputation: 51758
You can remove all unused networks by running: docker network prune
> docker network prune --help
Usage: docker network prune [OPTIONS]
Remove all unused networks
Upvotes: 1