Skip to content

Instantly share code, notes, and snippets.

@samrose
Last active August 29, 2015 14:02
Show Gist options
  • Save samrose/bc015fea33b8173d47b9 to your computer and use it in GitHub Desktop.
Save samrose/bc015fea33b8173d47b9 to your computer and use it in GitHub Desktop.
docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi
docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment