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.
解决方法:文章来源:https://www.toymoban.com/news/detail-840048.html
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/文章来源地址https://www.toymoban.com/news/detail-840048.html
到了这里,关于【错误解决】docker找不到runc:failed to create shim: OCI runtime create failed: unable to retrieve OCI runtime的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!