How to remove multiple docker images with the same imageID?

后端 未结 8 2101
余生分开走
余生分开走 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:47

    There are multiple ways you can delete.

    a) delete only one:

    $ sudo docker rmi login(REPOSITORY NAME):latest(TAG NAME)
    

    b) delete all with matching id with -f command:

    $ sudo docker rmi -f 91dfd8adbf04(IMAGE ID)
    

提交回复
热议问题