docker删除镜像Error response from daemon: conflict: unable to remove repository reference

 

Docker can not be deleted images, this error occurs because dependent on container, there may be multiple container

 

1. Go to root privileges

sudo su

 

2. List all running or not running in the mirror

docker ps  -a 

 

3. Stop the container, so that it can delete images in which:

Stop all containers container

docker stop $(docker ps -a -q)

 

If you want to delete a container, then add a command:

docker rm  ID或者name

 

If you want to remove all the container, then add a command:

docker rm $(docker ps -a -q)

 

4. What are some of the current view images

docker images

 

5. After closing the associated container, delete the corresponding Images, specified by id image deletion who

docker rmi ID

 

To delete all of the image of words

docker rmi $(docker images -q)

Guess you like

Origin blog.csdn.net/persistencegoing/article/details/93502677