Docker Delete all images

Before you can delete a docker image, you need to delete any container that is based on this image. So see how to delete all docker containers, see

Delete all docker containers

To list all available docker images, run

To just display image ID only, run with -q option

Now lets pass the result to docker rmi command using xargs

This will delete all images. You can also use

See docker