How to remove multiple docker images with the same imageID?

后端 未结 8 2111
余生分开走
余生分开走 2021-01-30 20:15

I created a local docker registry and then pull some of my docker images from docker hub and then push them to the local registry. Now I want to remove my local images. But the

8条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 20:46

    Here is a way you could do this. Run the command:

    docker images | grep 810001cb03af | awk '{print $1 ":" $2}' | xargs docker rmi
    

    where 810001cb03af is your image id.

提交回复
热议问题