其他分享
首页 > 其他分享> > unable to delete * (must be forced) - image is referenced in multiple repositories

unable to delete * (must be forced) - image is referenced in multiple repositories

作者:互联网

目录

问题

解决


问题

删除docker镜像时报错:

unable to delete 859dd6fb3c9b (must be forced) - image is referenced in multiple repositories

解决

首先,查看docker镜像的情况。

命令:

docker images

镜像列表,如下图所示: 

其次,根据镜像名称删除。

命令:

docker rmi test-build-docker

然后,再根据镜像ID删除。

命令:

docker rmi 823d49569c07 

成功!

再运行这个命令的时候会提示这个镜像已经不存在了。 

标签:forced,referenced,multiple,image,命令,镜像,docker,rmi
来源: https://blog.51cto.com/u_14832233/2985907