Docker容器导入后无法运行的问题求解

查看 33|回复 0
作者:lyusantu   
别人发我了一个xxx.tar的包,让我使用docker load -i xxx.tar导入,然后也没有告知启动命令,原文内容如下:
docker load -i xxx.tar
端口:8888
访问:http://127.0.0.1:8888/test
首先我通过docker load -i xxx.tar导入的时候报错,内容如下
[Asm] 纯文本查看 复制代码C:\Users\Administrator\Desktop\docker>docker load -i xxx.tar
5d8013b03a1b: Loading layer [==================================================>]     84MB/84MB
6b35943326f3: Loading layer [==================================================>]  62.48MB/62.48MB
3238ba5df7f4: Loading layer [==================================================>]  3.584kB/3.584kB
open /var/lib/docker/tmp/docker-import-2114664617/82665886a6cbf3b114a5d09e56509cf17258e4e4b83006ca4e53024c0c4e9fe6/json: no such file or directory
也就是说docker load行不通,所以我使用了docker import导入此镜像,结果如下
[Asm] 纯文本查看 复制代码C:\Users\Administrator\Desktop\docker>docker import xxx.tar xxx
sha256:c6f3de33b00686d15eac27a44612a36d85732dee8a950b939ec831580cb4dcd9
然后我通过docker run启动此镜像,会失败,求解是为何?
[Asm] 纯文本查看 复制代码C:\Users\Administrator\Desktop\docker>docker run xxx
docker: Error response from daemon: No command specified.
See 'docker run --help'.
C:\Users\Administrator\Desktop\docker>docker run xxx /bin/bash
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown.

文本, 镜像

您需要登录后才可以回帖 登录 | 立即注册

返回顶部