Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kamynina/a28c0a69e8d4222ac3bdb58702ae73ae to your computer and use it in GitHub Desktop.
Save kamynina/a28c0a69e8d4222ac3bdb58702ae73ae to your computer and use it in GitHub Desktop.
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@jesugmz
Copy link

jesugmz commented Aug 12, 2018

Shorter :) docker image prune.

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