Feedback

Chat Icon

Painless Docker - 2nd Edition

A Comprehensive Guide to Mastering Docker and its Ecosystem

Cleaning Docker
48%

Delete Networks

Delete all unused networks (not used by any container):

docker network prune

Delete specific networks:

docker network rm  

Delete all custom networks:

Note: You cannot delete default networks (bridge, host, none). Running docker network rm $(docker network ls -q) will throw errors. Use this filtered command instead:

docker network rm $(docker network ls --filter type

Painless Docker - 2nd Edition

A Comprehensive Guide to Mastering Docker and its Ecosystem

Enroll now to unlock all content and receive all future updates for free.