philipp
philipp

Reputation: 16515

Docker—purge unneeded interfaces

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:

enter image description here

and looking at the »connection information« window shows:

enter image description here

How can I »purge« all unneeded interfaces, which were created by a docker run … or docker-compose up?

Upvotes: 0

Views: 438

Answers (1)

yamenk
yamenk

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

Related Questions