首页 > 其他分享> > unable to remove repository reference (must force) - container is using its referenced image
unable to remove repository reference (must force) - container is using its referenced image
作者:互联网
root@webssh-2876710:~# docker rmi busybox:latest
Error response from daemon: conflict: unable to remove repository reference "busybox:latest" (must force) - container 6135960b1ea6 is using its referenced image 6858809bf669
1. 删除镜像之前,必须先删除容器
# 删除对应的容器(如果不删除,则会报错,当然也可以使用docker rmi -f强制删除
docker rm container3
# 删除一个镜像
docker rmi busybox:latest
2. 强制删除
# 强制删除
docker rmi -f busybox:latest
标签:busybox,referenced,force,repository,删除,docker,rmi,latest 来源: https://blog.51cto.com/u_15077160/2916310