Tag Archives: Docker Delete Image Error

[Solved] Docker Delete Image Error: Error: No such image

1. docker image deletion error

[root@www ~]# docker images
REPOSITORY                   TAG                            IMAGE ID            CREATED             SIZE
dcm4che/slapd-dcm4chee       2.6.2-26.1                     8f1f18417a82        2 months ago        12.2MB
dcm4che/wildfly              ffmpeg-26.1.1-18.0.0           14aa8bf95061        2 months ago        1.11GB
[root@www ~]# docker rmi 14aa8bf95061
Error: No such image: 8f1f18417a82

2. Enter the Docker image storage address

[root@www sha256]# cd /var/lib/docker/image/overlay2/imagedb/content/sha256
[root@www sha256]# ll | grep 14aa8bf95061
-rw------- 1 root root  9018 Jun  6 00:21 14aa8bf9506150f2084035a561a2d5b0aa70da3c2756439fbf2bd5f1225e6ec2
[root@www sha256]# rm -rf 14aa8bf9506150f2084035a561a2d5b0aa70da3c2756439fbf2bd5f1225e6ec2

[root@www sha256]# docker images
REPOSITORY                   TAG                            IMAGE ID            CREATED             SIZE
dcm4che/slapd-dcm4chee       2.6.2-26.1                     8f1f18417a82        2 months ago        12.2MB

END