How to solve the problem that docker cannot delete the image

王林
Release: 2020-04-14 14:48:09
Original
3484 people have browsed it

How to solve the problem that docker cannot delete the image

1. View all current mirrors

docker images
Copy after login

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
Copy after login

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
Copy after login

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

docker rmi ubuntu
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template