docker delete none Mirror

Delete none of the mirror, first delete the container in the mirror. To remove a container in the mirror, you must first stop the container.

$ docker images

$ docker rmi $(docker images | grep "none" | awk '{print $3}')
Deleted directly with none of the mirrors directly the error. When prompted to stop the container.

$ docker stop $(docker ps -a | grep "Exited" | awk '{print $1 }') // stop the container

$ docker rm $(docker ps -a | grep "Exited" | awk '{print $1 }') // delete container

$ docker rmi $(docker images | grep "none" | awk '{print $3}') // remove a mirror

Guess you like

Origin www.cnblogs.com/sunnykwan/p/12021743.html