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). Runningdocker network rm $(docker network ls -q)will throw errors. Use this filtered command instead:
docker network rm $(docker network ls --filter typePainless Docker - 2nd Edition
A Comprehensive Guide to Mastering Docker and its EcosystemEnroll now to unlock all content and receive all future updates for free.
