咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
Docker删除容器镜像报错:Error response from daemon conflict unable to delete cae53c63d5bf (must be forced)
- image is referenced in multiple repositories
docker 删除容器镜像的时候报错
docker rmi 容器镜像ID
报错:
Error response from daemon conflict unable to delete cae53c63d5bf (must be forced) - image is referenced in multiple repositories
解决办法:
1、docker rmi 时指定名称
# docker rmi nginx:latest
2、强制删除 增加 -f 参数
docker rmi -f 该容器镜像ID
# docker rmi -f cae53c63d5bf
强制删除所有是该容器镜像ID的容器镜像。
Docker更多删除命令
删除所有未被tag标记和未被容器使用的镜像:
# docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
删除所有未被容器使用的镜像:
# docker image prune -a
删除所有停止运行的容器:
# docker container prune
删除所有未被挂载的卷:
# docker volume prune
删除所有网络:
# docker network prune
删除docker所有资源:
# docker system prune