The docker image cannot be deleted. If you view the image through docker images
, it clearly exists, but it cannot be deleted.
Deletion prompt: error: no such image: XXXXXXXX
The specific screenshots are as follows:
Problem solving:
get into
cd /var/lib/docker/image/overlay2/imagedb/content/sha256
This directory is all the image files in docker
Which to delete? Don’t panic, image ID
in docker images
can determine the image file.
Delete the file after confirmation: RM -rf
+ file name
After deletion, there is no in the docker images
list.
Read More:
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- [Solved] Ubuntu Open jpg Image Error: Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
- [Solved] CentOS7 python import docker Error: No module named selectors
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- Read and write BMP image with Pure C language
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- The docker export container cannot be run after being imported: error response from daemon: no command specified
- CentOS 8: No URLs in mirrorlist error [How to Solve]
- Git: How to delete stash content
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- How to fix the ERROR: Failed to build gem native extension in Centos 8
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- CentOS7 Failed to start LSB: Bring up/down networking [How to Solve]