1. View all current mirrors
docker images
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
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!