Can’t delete docker image with dependent child images

前端 未结 19 2230
挽巷
挽巷 2020-12-02 06:11

I am trying

docker rmi c565603bc87f

Error:

Error response from daemon: conflict: unable to delete c565603bc87f (ca

19条回答
  •  旧时难觅i
    2020-12-02 06:57

    What worked to me was to use the REPOSITORY:TAG combination rather than IMAGE ID.

    When I tried to delete a docker image with the command docker rmi with no containers associated with this image I had the message:

    $ docker rmi 3f66bec2c6bf
    Error response from daemon: conflict: unable to delete 3f66bec2c6bf (cannot be forced) - image has dependent child images
    

    I could delete with success when I used the command docker rmi RPOSITORY:TAG

    $ docker rmi ubuntu:18.04v1
    Untagged: ubuntu:18.04v1
    

提交回复
热议问题