您的位置:首页 > 运维架构 > Docker

docker运行image报错:no such file or directory

2018-03-15 09:48 537 查看
今天在虚拟机运行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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  docker images centos 7.4
相关文章推荐