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