docker run 容器 OCI runtime create failed 报错

docker pull nginx:latest
#启动一个容器
docker run --name docker_nginx -p 80:80 -d nginx
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.tas
k/moby/2357c175f778c6988ee623690705515df86fb46e5d93ffd8c71cacbc5a7a14e8/log.json: no such file or directory): runc did not terminate successfully: exit status 127: unknown.

解决方法:

github官网仓库,下载runc.amd64 版本
https://github.com/opencontainers/runc/releases/
//服务器执行
mv runc.amd64 runc
cp runc /usr/local/bin
cp /usr/local/bin/runc /usr/local/sbin/
cp /usr/local/bin/runc /usr/bin/

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐