今天在虚拟机运行docker镜像时,一直报错(具体报错原因待分析),检查了系统内核和操作系统版本,也没有找到结果。
[root@bogon ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@bog[root@bogon ~]# docker version
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:15:20 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:54 2018
OS/Arch: linux/amd64
Experimental: false
报错信息:
[root@bogon yum.repos.d]# docker run -it centos echo haha
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
解决方法:
升级系统到7.4,即可解决
执行yum update,时间比较长,耐心等待。
[root@bogon ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)[root@bogon ~]# docker run -it centos echo haha
haha
还有一个解决方法时安装低版本的docker,docker与操作系统的版本依赖性特别强,在安装时务必要注意!
外国人是这样解释的:
RHEL 7.2 is no longer supported and Docker does not test their release against unsupported versions. You need to upgrade your OS, preferably to 7.4, to resolve this issue.
I've seen a few people with similar issues in the past few days that resolved this same error message by upgrading their OS. Some of the older packages no longer work with newer docker releases. One of those problems is an outdated libseccomp: https://github.com/moby/moby/issues/35906
本文记录了在CentOS 7.2系统中运行Docker镜像时遇到的错误,并提供了两种解决方案:一是升级系统版本至7.4;二是安装较低版本的Docker。此外,还详细介绍了错误的具体原因及解决过程。
6130

被折叠的 条评论
为什么被折叠?



