在使用systemctl start docker启动失败时,使用systemctl status docker.service
在使用systemctl start docker启动失败时,使用systemctl status docker.service.报告如下:
root@localhost ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-07-25 00:24:56
EDT; 2min 4s ago
Docs: http://docs.docker.com
Main PID: 2600 (code=exited, status=1/FAILURE)
Jul 25 00:24:54 localhost.localdomain systemd[1]: Starting Docker...
Jul 25 00:24:54 localhost.localdomain dockerd-current[2600]: time...
Jul 25 00:24:54 localhost.localdomain dockerd-current[2600]: time...
Jul 25 00:24:55 localhost.localdomain dockerd-current[2600]: time...
Jul 25 00:24:56 localhost.localdomain dockerd-current[2600]: Erro...
Jul 25 00:24:56 localhost.localdomain systemd[1]: docker.service:...
Jul 25 00:24:56 localhost.localdomain systemd[1]: Failed to start...
Jul 25 00:24:56 localhost.localdomain systemd[1]: Unit docker.ser...
Jul 25 00:24:56 localhost.localdomain systemd[1]: docker.service ...
Hint: Some lines were ellipsized, use -l to show in full.
查资料得知:这里是linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,–selinux-enabled=false
[code]vi /etc/sysconfig/docker
然后systemctl start docker,问题解决
阅读更多- 关于运行mysql_install_db命令导致sudo systemctl start /restart mariadb.service启动失败问题
- Docker 启动失败Starting docker (via systemctl): Job for docker.service failed
- centos 使用 systemctl 使 docker 容器(container)开机启动
- centos7 使用 systemctl 使 docker 容器(container)开机启动
- Linux启动SSH失败:Failed to start ssh.service because controll process exit status.
- Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”
- nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo
- zookeeper使用和原理探究 (注意linux下防火墙导致启动失败的坑,使用service iptables stop 关闭防火墙 使用service iptables status确认)
- docker中使用systemctl启动服务报错的解决办法
- docker中使用systemctl启动服务报错的解决办法
- 关于systemctl及systemd service的一些使用经验
- win10的docker-toolbox启动时检查更新失败,无法正常使用
- CentOS7解决systemctl start 启动服务时的常见错误
- [原]openstack-kilo--issue(三) openstack-nova-issue-systemctl start openstack-nova-compute.service
- centos7 systemctl 启动 Redis 失败
- Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for deta
- Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
- docker下centos7 systemctl启动报错 docker Failed to get D-Bus connection 报错
- Centos7下将Shell脚本转换为Systemctl start&stop Service
- Android中的Service(使用StartService 方式启动)