centos7.2部署docker-17.06.0-ce的bug:Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused \"\"".


現象:

操作系統:centos 7.2 kernel 3.10.0-327.el7.x86_64

mesos:1.3.0

docker:docker-17.06.0-ce

在做mesos驗證時,通過marathon下發容器,發現在多個mesos-slave節點上下發容器均以失敗告終。

marathon:

mesos:

分析:

#在任意1個mesos節點上查看docker下發容器的信息
[root@mesos-node1 ~]# docker ps -a

#再查看每個下發失敗的容器的信息,如id為“36f9211279a1”的容器
[root@mesos-node1 ~]# docker inspect container 36f9211279a1

報錯信息:"Error": "oci runtime error: container_linux.go:262: starting container process caused \"process_linux.go:339: container init caused \\\"\\\"\"\n",

原因:

google相關報錯,https://github.com/moby/moby/issues/34046 給出了答案:

docker-17.06.0-ce部署在centos7.2( kernel :3.10.0-327.el7.x86_64) 時,針對上述情況有1個bug,下發容器指定內存時(matathon下發容器指定了內存)時會觸發此bug。

驗證:

#不指定內存
[root@mesos-node1 ~]# docker run -itd --name test1 nginx 

#指定內存,報錯復現
[root@mesos-node1 ~]# docker run -itd --name test2 -m 20m nginx 

#查看容器狀態
[root@mesos-node1 ~]# docker ps -a

解決方案:

 github上已給出解決方案:This should be cleared up if you update to the latest patch level (-514). Alternatively we will also be releasing a fix with 17.06.1 (docker/docker-ce#102)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: Error response from daemon: oci runtime error: container_linux.go:235: starting container process ………… 解決Error response from daemon: oci runtime error: container_linux.go:247: starting container process docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"ping\": executable file not found in $PATH": unknown. Docker 更新 解決Error response from daemon: oci runtime error: container_linux.go:247: starting container process OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting .. kolla部署openstack allinone,報錯APIError: 500 Server Error: Internal Server Error (\"oci runtime error: container_linux.go:235: starting container process caused \"container init exited prematurely ERROR: for pigfarm-app Cannot start service pigfarm: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: docker exec 無法進入容器 OCI runtime exec failed、container_linux.go:348: starting container process caused "process_linux.go:78: starting setns process caused \"fork/exec /proc/self/exe: no such file
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM