vITraining.blog

Deleting Many Docker Images at Once

Using awk

January 2020 · vITraining

Suppose that we have so many docker images on our local computer as a result of building many versions of images...


Show all images that contains "myimage":

docker images | grep myimages


Get only IMAGE ID column (the 3rd column):

docker images | grep myimages | awk {'print $3'}


Force delete images with those ID:

docker images | grep myimages | awk {'print $3'} | xargs docker rmi --force 



Butuh bantuan implementasi atau training ERP?

Pelajari Xerpium ERP