docker启动不支持selinux
查看状态报错
[[email protected] ~]# systemctl status docker
Jul 25 17:48:14 GZ-vm-game-A-228-225 systemd[1]: Starting Docker Application Container Engine...
Jul 25 17:48:14 GZ-vm-game-A-228-225 dockerd-current[8197]: time="2018-07-25T17:48:14.785067570+08:00" le...d"
Jul 25 17:48:14 GZ-vm-game-A-228-225 dockerd-current[8197]: time="2018-07-25T17:48:14.786354398+08:00" le...8"
Jul 25 17:48:16 GZ-vm-game-A-228-225 dockerd-current[8197]: Error starting daemon: SELinux is not support...e)
Jul 25 17:48:16 GZ-vm-game-A-228-225 systemd[1]: docker.service: main process exited, code=exited, stat...LURE
Jul 25 17:48:16 GZ-vm-game-A-228-225 systemd[1]: Failed to start Docker Application Container Engine.
Jul 25 17:48:16 GZ-vm-game-A-228-225 systemd[1]: Unit docker.service entered failed state.
Jul 25 17:48:16 GZ-vm-game-A-228-225 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
原因:docker配置文件没有关闭selinux
解决方法:
[[email protected] ~]# vi /etc/sysconfig/docker
在--selinux-enable后面添=false
重启docker
systemctl start docker
原文地址:http://blog.51cto.com/zhongliang/2150129