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