OCI runtime create failed: runc create failed: unable to start container process: --docker加载镜像
OCI runtime create failed: runc create failed: unable to start container process: exec: "env": executable file not found in $PATH: unknown
OCI runtime create failed: runc create failed: unable to start container process: exec: “env”: executable file not found in $PATH: unknown
运行docker容器时出现上述报错。
原因:
别人给我的镜像是已解压的,并且告知我是用load去加载镜像。
docker load < ***.tar
命令报错。
报错信息为:open /var/lib/docker/tmp/docker-import-********/repositories: no such file or directory
于是我用docker import加载镜像,竟然加载成功了,也没有出现网上说的0kb的问题。
docker import ***.tar docker:v1
但是在运行时出现问题。
docker run
出现了下面的报错信息:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "env": executable file not found in $PATH: unknown
搜集网上的解决方法,有人说和内核版本有关,还有说重新解压。
于是我尝试用tar去解压:
tar -xvf ***.tar
解压之后再用load加载镜像,成功!
更多推荐
所有评论(0)