我有两台机器运行docker 1.13。我尝试使用以下命令运行centos:7图像:
docker run -it centos:7
在机器A上,容器启动并向我显示提示,因为我现在在centos容器内。但是在机器B上运行相同的图像我得到:
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory".
我的docker设置似乎有问题我认为虽然默认的hello-world图像确实运行,但ubuntu也可以运行。知道可能是什么问题或我如何调试它?
以下是两台机器的泊坞信息:
机器A(工作机器):
Containers: 3
Running: 2
Paused: 0
Stopped: 1
Images: 21
Server Version: 1.13.0
Storage Driver: btrfs
Build Version: Btrfs v4.2.2
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Kernel Version: 4.1.12-61.1.23.el6uek.x86_64
Operating System: Oracle Linux Server 6.8
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.577 GiB
Name: lnx70347
ID: WNMG:SW3H:FLZE:CP7Z:UQ6H:XUOA:ZCVA:SUEH:LBWG:J43W:XJNW:LYUX
Docker Root Dir: /env/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
机器B:
Containers: 44
Running: 0
Paused: 0
Stopped: 44
Images: 29
Server Version: 1.13.0
Storage Driver: btrfs
Build Version: Btrfs v4.2.2
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Kernel Version: 4.1.12-61.1.23.el6uek.x86_64
Operating System: Oracle Linux Server 6.8
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.577 GiB
Name: lnx70346
ID: 3ZM2:CINA:5GBI:U63B:RWBM:QS5T:XD2P:6YPV:HQRF:VY3P:7OYC:4TJJ
Docker Root Dir: /docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
答案 0 :(得分:0)
从评论中可以看出,您在docker文件系统中遇到了某种损坏。您可能已经能够再次删除和拉取图像,但停止docker服务并擦除/ var / lib / docker的最后手段将使系统返回到干净状态。这不仅会删除任何下载的图像,还会删除任何容器和卷,因此请务必先备份存储在docker中的所有数据。