删除docker镜像的时候提示image is referenced in multiple repositories

执行 docker rmi
删除docker镜像的时候提示image is referenced in multiple repositories,是因为有多个相同id的镜像,例如:
删除docker镜像的时候提示image is referenced in multiple repositories_第1张图片

[root@k8s-master docker]# docker rmi cec1fd015fdf
Error response from daemon: conflict: unable to delete cec1fd015fdf (must be forced) - image is referenced in multiple repositories

解决方法为,采用强制删除镜像 docker rmi -f

[root@k8s-master docker]# docker rmi -f cec1fd015fdf

即可解决!!!

你可能感兴趣的:(docker)