One liner to delete all Docker images

I want to destroy all the containers ... It is a one-liner to use when you are caught in such an urge

docker images --format "{{.Repository}}:{{.Tag}}" | xargs docker rmi

The --format option of docker images outputs a list of images according to the Go format.

Simply pipe the tagged repository name to xargs and delete the image.

Recommended Posts

One liner to delete all Docker images
Delete all Docker images
Command to stop or delete all Docker resources
How to delete untagged images in bulk with Docker
Docker all containers, images (stopped, deleted)
Command when you want to erase all Docker images and containers cleanly and start over
Push Docker images from GitHub Actions to GitHub Container Registry
How to install Docker
Delete unused docker image
docker error delete command
Gradle settings memo (multi-project to all in one) for myself
[Rails] How to delete images uploaded by carrierwave (using devise)