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
[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
相关文章推荐
- linux可执行文件执行时提示No such file or directory(docker环境中运行的ubuntu镜像)
- ubuntu 运行android sdk 下的工具adb报bash: ./adb: No such file or directory
- nginx运行文件出错env: /etc/init.d/nginx: No such file or directory
- npm install命令运行中出现Error: ENOENT: no such file or directory解决方法
- docker iotop :OSError: Netlink error: No such file or directory
- Ubuntu 14.04 LTS 解决adb无法运行 提示adb: No such file or directory 安装ia32-libs
- 解决“运行arm-linux-gcc命令,提示No such file or directory”的问题
- docker 安装 Error response from daemon: Cannot start container no such file or directory
- 关于运行程序时 No such file or directory 的问题
- docker iotop :OSError: Netlink error: No such file or directory
- Ubuntu上运行shell脚本报错:bad interpreter: No such file or directory
- 目标板上运行程序提示 sh: xx : no such file or directory
- nginx运行文件出错env: /etc/init.d/nginx: No such file or directory
- 解决“运行arm-linux-gcc命令,提示No such file or directory”的问题
- SlickEdit在64bit Ubuntu下运行vsinst安装程序出现"No such file or directory"的解决方法
- shell 脚本运行 提示bad interpreter:No such file or directory
- QT中运行程序时出现错误“ QApplication: No such file or directory"
- Linux运行脚本命令提示No such file or directory错误的解决办法
- UNIX/Linux下运行脚本文件出现bad interpreter:No such file or directory的原因和解决办法
- 运行shell脚本,错误:-bash: ./xxx.sh: /bin/bash^M: bad interpreter: No such file or directory