Docker Cheat Sheet/Remove network

Delete one or more unused networks.

Section: Networks

Remove network

bash
bash
docker network rm app-net
Explanation

Will fail if the network is still in use.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Networks
Remove an image
Delete a local image.
OpenIn sheetbash2 tag match
Force remove an image
Force-remove a local image.
OpenIn sheetbash2 tag match
Remove a stopped container
Remove one or more stopped containers.
OpenIn sheetbash2 tag match
Force remove a running container
Force-remove a running container.
OpenIn sheetbash2 tag match
Publish a port
Publish a container port to the host.
OpenIn sheetbash1 tag match
Prune dangling images
Remove dangling images.
OpenIn sheetbash1 tag match