Skip to content

Instantly share code, notes, and snippets.

@ariefitriadin
Last active June 23, 2019 00:27
Show Gist options
  • Save ariefitriadin/6d927c695e64bc1166d305c988b77297 to your computer and use it in GitHub Desktop.
Save ariefitriadin/6d927c695e64bc1166d305c988b77297 to your computer and use it in GitHub Desktop.
Cleanup Unused Resources Networks, Containers, Images, cache

Remove Docker Images

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

Remove Docker Network

docker network prune

Remove :

  • all stopped containers

  • all networks not used by at least one container

  • all dangling images

  • all build cache

docker system prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment