Docker image cannot be deleted Error: No such image: xxxxxx solution

Docker image cannot be deleted Error: No such image: xxxxxx solution

Preface

The docker image cannot be deleted. Checking docker images shows that the image exists but cannot be deleted.

Deletion Tips: Error:No such image:xxxxxxx

The specific screenshots are as follows:

Workaround

Enter the directory:

cd /var/lib/docker/image/overlay2/imagedb/content/sha256

This directory contains all the image files in docker (image files encrypted with shar256 encryption). Let's check it through ll :

Which one should I delete? Don't panic, IMAGE ID in docker images can identify the image file.

If you are not sure, you can also check the file size: stat +文件名

stat bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

After confirmation, delete the file: rm -rf +文件名

rm -rf bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

After deletion, it disappears from the docker images list.

This is the end of this article about how to solve the docker image cannot be deleted Error: No such image: xxxxxx. For more related content about docker image cannot be deleted, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Talk about the issue of replacing docker (shim) with containerd in kubernetes1.20
  • How to keep running after exiting Docker container
  • Docker removes abnormal container operations
  • Goodbye Docker: How to Transform to Containerd in 5 Minutes
  • Docker dynamically exposes ports to containers
  • Delete the image operation of none in docker images
  • Implementation of local migration of docker images
  • Solve the problem of docker images disappearing
  • How to delete an image in Docker
  • Naming containers and images in Docker

<<:  Summary of methods for writing judgment statements in MySQL

>>:  React+ts realizes secondary linkage effect

Recommend

Detailed explanation of browser negotiation cache process based on nginx

This article mainly introduces the detailed proce...

MySQL InnoDB tablespace encryption example detailed explanation

Preface Starting from MySQL 5.7.11, MySQL support...

Using CSS3 to achieve transition and animation effects

Why should we use CSS animation to replace JS ani...

Sample code for implementing the Olympic rings with pure HTML+CSS

Rendering Code - Take the blue and yellow rings a...

Three Vue slots to solve parent-child component communication

Table of contents Preface Environment Preparation...

Pure CSS custom multi-line ellipsis problem (from principle to implementation)

How to display text overflow? What are your needs...

Example of how to quickly build a Redis cluster with Docker

What is Redis Cluster Redis cluster is a distribu...

How to switch directories efficiently in Linux

When it comes to switching directories under Linu...

jenkins+gitlab+nginx deployment of front-end application

Table of contents Related dependency installation...

Basic steps to use Mysql SSH tunnel connection

Preface For security reasons, the root user of My...

Docker packages the local image and restores it to other machines

1. Use docker images to view all the image files ...