Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that docker cannot delete the image

How to solve the problem that docker cannot delete the image

王林
王林Original
2020-04-14 14:48:093426browse

How to solve the problem that docker cannot delete the image

1. View all current mirrors

docker images

How to solve the problem that docker cannot delete the image

2. Delete the mirror ubuntu, and an error will be reported, as shown below (here it is prompted that the mirror has being reused by the container)

Error response from daemon: conflict: unable to remove repository reference "ubuntu" (must force) - container 23107e15cef9 is using its referenced image 735f80812f90

The solution is as follows:

1. Delete the ubuntu container first. There will be a problem of multiple containers occupying the same image. Please delete it repeatedly. Yes (it can be seen from the above error message: container ID: 23107e15cef9 name: ubuntu)

docker rm 23107e15cef9

2. Delete the ubuntu image and check all the images. The image has been successfully deleted

docker rmi ubuntu

How to solve the problem that docker cannot delete the image

Recommended tutorial: docker tutorial

The above is the detailed content of How to solve the problem that docker cannot delete the image. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn