在centos7上安装docker后,无法启动docker.“docker.service的作业失败了.”

在centos7上执行yum install docker后,我想通过执行服务docker start启动docker,然后我可以看到错误:

Redirecting to /bin/systemctl start docker.service
Job for docker.service failed. See ‘systemctl status docker.service’ and ‘journalctl -xn’ for details.

然后我执行systemctl status docker.service -l,然后错误是:

docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled)
   Active: failed (Result: exit-code) since Sun 2015-03-15 03:49:49 EDT; 12min ago
     Docs: http://docs.docker.com
  Process: 11444 ExecStart=/usr/bin/docker -d $OPTIONS $DOCKER_STORAGE_OPTIONS (code=exited, status=1/FAILURE)
 Main PID: 11444 (code=exited, status=1/FAILURE)
Mar 15 03:49:48 localhost.localdomain docker[11444]: 2015/03/15 03:49:48 docker daemon: 1.3.2 39fa2fa/1.3.2; execdriver: native; graphdriver:
Mar 15 03:49:48 localhost.localdomain docker[11444]: [a25f748b] +job serveapi(fd://)
Mar 15 03:49:48 localhost.localdomain docker[11444]: 
Listening for HTTP on fd () Mar 15 03:49:48 localhost.localdomain docker[11444]: [a25f748b] +job init_networkdriver() Mar 15 03:49:48 localhost.localdomain docker[11444]: [a25f748b] -job init_networkdriver() = OK (0) Mar 15 03:49:49 localhost.localdomain docker[11444]: 2015/03/15 03:49:49 write /var/lib/docker/init/dockerinit-1.3.2: no space left on device Mar 15 03:49:49 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Mar 15 03:49:49 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. Mar 15 03:49:49 localhost.localdomain systemd[1]: Unit docker.service entered failed state.

我真的不知道,期待你的回复,我将非常感激!

最佳答案 由于缺少device-mapper-event-libs包,通常会发生此错误.

# yum install device-mapper-event-libs
点赞