..." is enough."/> ..." is enough.">
search
HomeOperation and MaintenanceDockerWhat to do if the image cannot be found after docker load

The reason why the image cannot be found after docker load is because the IMAGE ID is used when exporting the image save, and the image name is not used, so it will not be displayed. The solution is to re-execute "docker save -o csctbb. com/hadoop:3.3.0 >..." is enough.

What to do if the image cannot be found after docker load

The operating environment of this article: centos8 system, Docker 20.10.11, Dell G3 computer.

What should I do if the image cannot be found after docker load?

docker load -i cannot see the image after importing

[root@centos8 ~]# docker images                 
REPOSITORY          TAG        IMAGE ID       CREATED         SIZE
csctbb.com/hadoop   3.3.0      084faab5baec   7 hours ago     1.68GB
centos              8.1.1911   470671670cac   14 months ago   237MB
kubeguide/hadoop    latest     e0af06208032   4 years ago     830MB
[root@centos8 ~]# docker save 084faab5baec > csctbb.com-hadoop.tar

Problem:

docker load -i After importing, there is no prompt for success , and no error is reported, docker images cannot see the imported image?

As above, my image has a name and tag

Explanation:

This is because the IMAGE ID is used when exporting the image save , the image name is not used, so it will not be displayed.

Use the following method:

 docker save -o csctbb.com/hadoop:3.3.0 > csctbb.com-hadoop.tar

Just import it again

I use containerd here ctr test, the principle is the same, the difference is the command method

[root@ck8s2 ~]# ctr image import csctbb.com-hadoop.tar 
unpacking csctbb.com/hadoop:3.3.0 (sha256:6198b39f874b8c6c31a06f2dc9113292c02533527feef8cf88b4e2b17e48d658)...done
[root@ck8s2 ~]# 
[root@ck8s2 ~]# ctr image import hadoop.tar 
unpacking csctbb.com/hadoop:3.3.0 (sha256:6198b39f874b8c6c31a06f2dc9113292c02533527feef8cf88b4e2b17e48d658)...done
[root@ck8s2 ~]# ctr images list
REF                                                                    TYPE                                                      DIGEST                                                                  SIZE     PLATFORMS                                                   LABELS 
csctbb.com/hadoop:3.3.0                                                application/vnd.docker.distribution.manifest.v2+json      sha256:6198b39f874b8c6c31a06f2dc9113292c02533527feef8cf88b4e2b17e48d658 1.6 GiB  linux/amd64

Recommended study: "docker tutorial"

The above is the detailed content of What to do if the image cannot be found after docker load. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Docker: An Introduction to Containerization TechnologyDocker: An Introduction to Containerization TechnologyMay 05, 2025 am 12:11 AM

Docker is an open source platform for developing, packaging and running applications, and through containerization technology, solving the consistency of applications in different environments. 1. Build the image: Define the application environment and dependencies through the Dockerfile and build it using the dockerbuild command. 2. Run the container: Use the dockerrun command to start the container from the mirror. 3. Manage containers: manage container life cycle through dockerps, dockerstop, dockerrm and other commands.

Docker and Linux: Building Portable ApplicationsDocker and Linux: Building Portable ApplicationsMay 03, 2025 am 12:17 AM

How to build portable applications with Docker and Linux? First, use Dockerfile to containerize the application, and then manage and deploy the container in a Linux environment. 1) Write a Dockerfile and package the application and its dependencies into a mirror. 2) Build and run containers on Linux using dockerbuild and dockerrun commands. 3) Manage multi-container applications through DockerCompose and define service dependencies. 4) Optimize the image size and resource configuration, enhance security, and improve application performance and portability.

Docker and Kubernetes: The Power of Container OrchestrationDocker and Kubernetes: The Power of Container OrchestrationMay 02, 2025 am 12:06 AM

Docker and Kubernetes improve application deployment and management efficiency through container orchestration. 1.Docker builds images through Dockerfile and runs containers to ensure application consistency. 2. Kubernetes manages containers through Pod, Deployment and Service to achieve automated deployment and expansion.

Docker vs. Kubernetes: Key Differences and SynergiesDocker vs. Kubernetes: Key Differences and SynergiesMay 01, 2025 am 12:09 AM

Docker and Kubernetes are leaders in containerization and orchestration. Docker focuses on container lifecycle management and is suitable for small projects; Kubernetes is good at container orchestration and is suitable for large-scale production environments. The combination of the two can improve development and deployment efficiency.

Docker and Linux: The Perfect PartnershipDocker and Linux: The Perfect PartnershipApr 30, 2025 am 12:02 AM

Docker and Linux are perfect matches because they can simplify the development and deployment of applications. 1) Docker uses Linux's namespaces and cgroups to implement container isolation and resource management. 2) Docker containers are more efficient than virtual machines, have faster startup speeds, and the mirrored hierarchical structure is easy to build and distribute. 3) On Linux, the installation and use of Docker is very simple, with only a few commands. 4) Through DockerCompose, you can easily manage and deploy multi-container applications.

Docker vs. Kubernetes: Deciding Which to UseDocker vs. Kubernetes: Deciding Which to UseApr 29, 2025 am 12:05 AM

The difference between Docker and Kubernetes is that Docker is a containerized platform suitable for small projects and development environments; Kubernetes is a container orchestration system suitable for large projects and production environments. 1.Docker simplifies application deployment and is suitable for small projects with limited resources. 2. Kubernetes provides automation and scalability capabilities, suitable for large projects that require efficient management.

Docker and Kubernetes: Building Scalable ApplicationsDocker and Kubernetes: Building Scalable ApplicationsApr 28, 2025 am 12:18 AM

Use Docker and Kubernetes to build scalable applications. 1) Create container images using Dockerfile, 2) Deployment and Service of Kubernetes through kubectl command, 3) Use HorizontalPodAutoscaler to achieve automatic scaling, thereby building an efficient and scalable application architecture.

Kubernetes and Docker: A Comparative AnalysisKubernetes and Docker: A Comparative AnalysisApr 27, 2025 am 12:05 AM

The main difference between Docker and Kubernetes is that Docker is used for containerization, while Kubernetes is used for container orchestration. 1.Docker provides a consistent environment to develop, test and deploy applications, and implement isolation and resource limitation through containers. 2. Kubernetes manages containerized applications, provides automated deployment, expansion and management functions, and supports load balancing and automatic scaling. The combination of the two can improve application deployment and management efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.