您现在的位置是:首页 > 唯美句子

【错误解决】docker找不到runc:failed to create shim: OCI runtime create failed: unable to retrieve OCI runtime

作者:言安琪时间:2024-04-16 08:32:00分类:唯美句子

简介  文章浏览阅读1.1k次,点赞5次,收藏11次。docker run 容器 OCI runtime create failed 报错。gitlab官网仓库,下载runc.amd64 版本。_failed to create task for container:

点击全文阅读

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/

点击全文阅读

郑重声明:

本站所有活动均为互联网所得,如有侵权请联系本站删除处理

我来说两句