Skip to content

Instantly share code, notes, and snippets.

@sysatom
Created April 30, 2019 09:23
Show Gist options
  • Save sysatom/d4fafcb32078cb244033803c94b7c2a4 to your computer and use it in GitHub Desktop.
Save sysatom/d4fafcb32078cb244033803c94b7c2a4 to your computer and use it in GitHub Desktop.
# stop
docker stop $(docker ps -a | grep "Exited" | awk '{print $1 }')
# remove
docker rm $(docker ps -a | grep "Exited" | awk '{print $1 }')
# remove
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