This short tutorial teaches you how to remove all images in Docker.
1. Docker Remove All Images
Are you sure you want to remove all images? If so, first, all images and containers should be removed from your machine after running the two command lines below:
# delete ALL containers $ docker rm -f $(docker ps -a -q) # and then delete ALL images $ docker rmi $(docker images -q) --force
Here are two of my favorite Docker Books if you want to learn more about them.
- Docker: Up & Running: Shipping Reliable Containers in Production by Sean P. Kane
- Docker in Action 2nd Edition by Jeff Nickoloff