报错信息:docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime
Posted on 2021-02-19 09:47 shenyixin 阅读(7180) 评论(0) 编辑 收藏 举报docker版本:18.09.0 在Centos7.2上安装(为离线安装):安装成功后,在创建容器时,报错:
docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/6602807a7f1a03689a847741b0a10171788f7bed2aa92a4dff35c429b02248d1/log.json: no such file or directory): docker-runc did not terminate sucessfully: docker-runc: symbol lookup error: docker-runc: undefined symbol: seccomp_version
Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/88cf2ba8bbec1377acc4db41ece11dd18e63010855562aef0723ba7aed9e01dc/log.json: no such file or directory): docker-runc did not terminate sucessfully: unknown
需要注意的是:同样是离线安装:拿这些安装包在centos7.5上安装后,能够正常使用,在Cento7.2上就异常了,最后查了写资料:说是docker版本问题,需要升级Centos7.2到7.4 或者降低docker版本:由于当时条件不允许,无法做docker版本的变动和系统的升级:最后找到解决方案:升级libseccomp
当时系统的libseccomp为:libseccomp-2.1.1
需要升级到:libseccomp-2.3.1
下载地址:http://www.rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/libseccomp-2.3.1-4.el7.x86_64.rpm
升级安装:rpm -U libseccomp-2.3.1-4.el7.x86_64.rpm
安装完成后重新创建容器,无异常报错