docker load repositories: no such file or directory problem

1. Excerpts from the original author are as follows:

The following error occurs when using docker load:

open /var/lib/docker/tmp/docker-import-500852078/repositories: no such file or directory

The reason is the difference between docker load and docker import. Because if the compressed package is packaged with docker save, you can naturally use docker load, but if the compressed package is packaged with docker export, you need to use docker import. The command is as follows:

cat ubuntu.tar | sudo docker import - test/ubuntu:v1.0

前面是压缩包的名字,后面是你需要import之后的镜像名。

Original link: https://blog.csdn.net/u013042928/article/details/83744960

 

2.补充内容

cat ubuntu.tar | sudo docker import - 使用后发现SIZE大小为0;也就是说自己遇到问题没有得到实质性的解决;

然后,脑电波被折腾的百转千回,开始从tar本身数据入手,发现tar本地解压(Ubuntu)后的数据竟然是空的,十有八九是可以定位到是tar自身的问题;

Verification: Put tar on other systems (such as windows that can be decompressed normally), and re-tar package the decompressed data.

Finally: the docker load -i xxx.tar problem is solved; finally you're done!

 

 

 

 

Guess you like

Origin blog.csdn.net/xiaoshunzi111/article/details/107811568