unable to delete xxx (cannot be forced) - image has dependent child images

Error:

docker rmi d4cfead6edb9 报错:

Error response from daemon: conflict: unable to delete d4cfead6edb9 (cannot be forced) - image has dependent child images

Solution:

有依赖的容器先把容器停掉 然后删除容器

有依赖的子镜像以docker rmi imagename:tag方式删除

docker stop containername

docker rm containername

docker rmi uphmp:stable (删除镜像应该依据镜像名:标签 方式删除)

 

 

 

你可能感兴趣的:(Docker)