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

An article to understand the execution process of MySQL query statements

Preface We need to retrieve certain data that mee...

How to install Linux flash

How to install flash in Linux 1. Visit the flash ...

How to build your own Nexus private server in Linux

This article describes how to build a Nexus priva...

Vue large screen data display example

In order to efficiently meet requirements and avo...

Linux centOS installation JDK and Tomcat tutorial

First download JDK. Here we use jdk-8u181-linux-x...

Let IE6, IE7, IE8 support CSS3 rounded corners and shadow styles

I want to make a page using CSS3 rounded corners ...

Solve the margin: top collapse problem in CCS

The HTML structure is as follows: The CCS structu...

Solution to IDEA not being able to connect to MySQL port number occupation

I can log in to MYSQL normally under the command ...

HTML Tutorial: Collection of commonly used HTML tags (4)

Related articles: Beginners learn some HTML tags ...

Use of provide and inject in Vue3

1. Explanation of provide and inject Provide and ...

How to use Vue3 asynchronous data loading component suspense

Table of contents Preface Creating Components Sum...

Basic knowledge points of mysql worm replication

Worms replicate, as the name implies, by themselv...

Image hover toggle button implemented with CSS3

Result:Implementation Code html <ul class=&quo...

Use VSCode's Remote-SSH to connect to Linux for remote development

Install Remote-SSH and configure it First open yo...