Remove all docker images, containers
Run as sudo privilege:
docker stop $(docker ps -a | awk '{print $1}' | grep -v CONTAINER)
docker rm $(docker ps -a | awk '{print $1}' | grep -v CONTAINER)
docker rmi $(docker images -a | awk '{print $3}' | grep -v IMAGE)
Written by Lam Dang Tung
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#