Docker删除镜像报错

问题描述:

笔者意图删除nginx-file的镜像文件,但通过命令删除镜像时出现报错信息,提示存在多个引用(即一个IMAGE可被多个REPOSITORY引用,故删除会出现失败),如下:

[[email protected] ~]# docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
kazihuo/nginx       v1                60c22883bb42        6 minutes ago       372 MB
nginx-file          v1                60c22883bb42        6 minutes ago       372 MB

[[email protected] ~]# docker rmi 60c22883bb42

Error response from daemon: conflict: unable to delete 60c22883bb42 (must be forced) - image is referenced in multiple repositories

解决方案:

当指定IMAGE ID删除报错时,可直接通过REPOSITORY:TAG的方式删除;

[[email protected] ~]# docker rmi nginx-file:v1

Untagged: nginx-file:v1

[[email protected] ~]# docker images

REPOSITORY       TAG                 IMAGE ID            CREATED             SIZE

kazihuo/nginx    v1                  60c22883bb42       11 minutes ago      372 MB

原文地址:https://www.cnblogs.com/kazihuo/p/9221101.html

时间: 2024-11-05 14:56:58

Docker删除镜像报错的相关文章

docker删除镜像时报错解决办法

报错信息 [[email protected] ~]# docker rmi 4950a54ede5a Error response from daemon: conflict: unable to delete 4950a54ede5a (must be forced) - image is being used by stopped container 834789a17497 报错原因 image is being used by stopped container 834789a1749

Docker获取镜像报错docker: Error response from daemon

docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled今天在使用docker获取镜像时,出现了镜像获取报错的问题,找到了解决的方法记一下. 一.问题 ? ~ docker search sameersbnError response from daemon: Get https://index.docker.io/v1/search?q=sameers

Docker 获取容器镜像报错

Dokcer 获取容器镜像报错 [[email protected] ~]# docker pull nginxUsing default tag: latestTrying to pull repository docker.io/library/nginx ... Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout excee

关闭或启动linux防火墙后,docker启动容器报错问题解决方式

关闭或启动linux防火墙后,docker启动容器报错问题解决方式 解决办法:重建docker0网络恢复 1.按照进程名杀死docker进程 pkill docker 2.清空防火墙规则-清空nat表的所有链 iptables -t nat -F 3.查看定义规则的详细信息 iptables -L -n -v 4.关闭docker0接口 ifconfig docker0 down 5.删除docker0接口 brctl delbr docker0 6.重启docker systemctl res

dojo处理删除操作报错

1.错误描述    java.lang.IllegalArgumentException:attempt to create delete event with null entity. 2.错误原因    dojo.xhrPost({         url:"", content:{     "userId":userId         },         success:function(data)         {         }    });  

zun 不能创建 docker 容器,报错: datastore for scope "global" is not initialized

问题:zun不能创建docker容器,报错:datastore for scope "global" is not initialized 解决:修改docker 服务配置文件: [[email protected] ~]# cat /usr/lib/systemd/system/docker.service [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.

Docker容器互联网络报错:WARNING: IPv4 forwarding is disabled. Networking will not work.解决办法(centos7)

Docker容器互联网络报错:WARNING: IPv4 forwarding is disabled. Networking will not work. 解决办法: echo net.ipv4.ip_forward=1 >> /usr/lib/sysctl.d/00-system.conf systemctl restart network 原文地址:https://www.cnblogs.com/pqshen/p/12159955.html

docker删除镜像的时候报错--image has dependent child images

背景 偶然间发现服务器上有很多镜像占用不少空间,想清理一下.结果直接进行删除报错: docker rmi 8f5116cbc201 Error response from daemon: conflict: unable to delete 8f5116cbc201 (cannot be forced) - image has dependent child images 然后上网需求方法,主流的方法有两种 方法一:强制删除镜像 docker rmi -f 8f5116cbc201 Error

docker安装启动报错

安装docker后测试pull个镜像发现报错 [[email protected] ~]# /etc/init.d/docker status Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 报错解决: (1).查看docker状态 [[email protected] ~]# /etc/init.d/docker status docker 已死,但 pid 文件仍存 (2).查看日志文件 /u