docker&&ubuntu:14.04&&OCI runtime create failed: container_linux.go:348: starting container process caused

错误示例:

root@tcpserver01HZ:~# docker run -d ubuntu:latest
906f57c199511e3f5774f13867e2d4f7a11f799da6ed1d09ef5460677966349c
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:301: running exec setns process for init caused \"exit status 23\"": unknown.

问题分析:

网络上给出的大部分原因是docker版本与系统版本的不兼容

解决方法:

方法一:升级当前操作系统

方法二:更改当前docker版本

贴一个docker&&ubuntu:14.04正常的docker info。

root@bjphp2:~# docker info
Containers: 3
 Running: 1
 Paused: 0
 Stopped: 2
Images: 5
Server Version: 17.06.0-ce
Storage Driver: aufs
 Root Dir: /data/dockerStorage/aufs
 Backing Filesystem: extfs
 Dirs: 14
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 apparmor
Kernel Version: 4.4.0-53-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.858GiB
Name: bjphp2
ID: 3UTW:ZNIP:6IAL:SBR3:5N3L:RWZC:C26T:Z426:LO7H:22B6:O43B:FUBE
Docker Root Dir: /data/dockerStorage
Debug Mode (client): false
Debug Mode (server): false
Username: luckydog
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Registry Mirrors:
 https://je5rsr46.mirror.aliyuncs.com/
Live Restore Enabled: false

WARNING: No swap limit support

参考资料:

参考资料1:https://github.com/moby/moby/issues/34046
参考资料2:https://www.cnblogs.com/netonline/archive/2017/08/02/7274439.html

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐