Home>Article>Operation and Maintenance> What 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.
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!