docker run bash failed

今天刚在centos上安装了docker,下载镜像docker pull docker ,执行如下命令:# docker run -t -I centos /bin/bash
报错如下:2015/09/16 16:36:21 POST /v1.12/containers/create +job create() -job create() = OK (0) 2014/07/31 16:36:21 POST /v1.12/containers/71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03/attach?stderr=1&stdin=1&stdout=1&stream=1 +job container_inspect(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) -job container_inspect(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) +job attach(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) 2014/07/31 16:36:21 POST /v1.12/containers/71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03/start +job start(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) +job allocate_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) -job allocate_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) container.go:435 Error running container: mkdir /sys/fs/devices: no such file or directory +job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) -job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) container.go:492 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: Error closing terminal: invalid argument -job attach(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) +job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) -job release_interface(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = OK (0) container.go:492 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: Error closing terminal: invalid argument 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 -job start(71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03) = ERR (1) server.go:1025 Error: Cannot start container 71854467dc0f87a884814397accc3b32bd44eb0ccac546cd4200a663d290ce03: mkdir /sys/fs/devices: no such file or directory 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希望遇到的朋友解答一下!
已邀请:

采菊篱下 - 无分享不快乐 助力技术开源分享 运维一枚

赞同来自: koyo

你把/var/lib/docker目录下文件全部删除,然后重启docker试试!

要回复问题请先登录注册