Remove all docker images/containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
Written by Stephane Paul
Related protips
1 Response

you can use -f
flag with rm
to stop and remove. If you want to remove then maybe don't care about SIGKILL.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#