docker加载容器失败问题

ZHF123 发布于 2014/07/31 20:32
阅读 11K+
收藏 0
在centos上安装了docker,已经下载镜像docker pull docker 。执行docker run -t -I centos /bin/bash 报错如下:2014/07/31 16:36:21 POST /v1.12/containers/create [44ce9a2a] +job create() [44ce9a2a] -job create() = OK (0) 2014/07/31 16:36:21 POST /v1.12/containers/71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03/attach?stderr=1&stdin=1&stdout=1&stream=1 [44ce9a2a] +job container_inspect(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) [44ce9a2a] -job container_inspect(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) [44ce9a2a] +job attach(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) 2014/07/31 16:36:21 POST /v1.12/containers/71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03/start [44ce9a2a] +job start(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) [44ce9a2a] +job allocate_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) [44ce9a2a] -job allocate_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) [error] container.go:435 Error running container: mkdir /sys/fs/devices: no such file or directory [44ce9a2a] +job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) [44ce9a2a] -job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) [error] container.go:492 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: Error closing terminal: invalid argument [44ce9a2a] -job attach(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) [44ce9a2a] +job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) [44ce9a2a] -job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) [error] container.go:492 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: Error closing terminal: invalid argument [error] driver.go:140 Warning: error unmounting device 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: UnmountDevice: device not-mounted id 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03 Cannot start container 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: mkdir /sys/fs/devices: no such file or directory [44ce9a2a] -job start(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = ERR (1) [error] server.go:1025 Error: Cannot start container 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: mkdir /sys/fs/devices: no such file or directory [error] server.go:90 HTTP Error: statusCode=500 Cannot start container 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: mkdir /sys/fs/devices: no such file or directory 2014/07/31 16:36:21 Error: Cannot start container 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: mkdir /sys/fs/devices: no such file or directory 各位大神,这会是啥原因。
加载中
0
Z
ZHF123
已经解决,就是把/var/lib/docker目录下删光了重启docker就好了
0
Yashin
Yashin
你的centos是啥版本?内核多少?是否有ufs了呢?
0
zigzagroad
zigzagroad
需要使用root用户启动Docker
0
Z
ZHF123

引用来自“ZHF123”的评论

已经解决,就是把/var/lib/docker目录下删光了重启docker就好了
解决
0
it_potato
it_potato
坑爹的答案!centos两百多M,辛辛苦苦下载下来的东西全删了
xue777hua
xue777hua
呵呵哒。。。是的。。。建议先把image导出
返回顶部
顶部