Skip to content

Instantly share code, notes, and snippets.

@Ketouem
Created January 18, 2016 10:08
Show Gist options
  • Save Ketouem/fd2177bd4affcde8e3bf to your computer and use it in GitHub Desktop.
Save Ketouem/fd2177bd4affcde8e3bf to your computer and use it in GitHub Desktop.
Clean docker containers and images
# All images
docker rm `docker ps -aq`
docker rmi `docker images -q`
# Only <none>/<none>
docker rmi `docker images | grep '^<none>' | awk '{print $3}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment