1. 程式人生 > >Error starting daemon: SELinux is not support...

Error starting daemon: SELinux is not support...

error port red contain col ren ima mct art

docker啟動不支持selinux

查看狀態報錯
[root@GZ-vm-game-A-228-225 ~]# 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

解決方法:
[root@GZ-vm-game-A-228-225 ~]# vi /etc/sysconfig/docker

技術分享圖片

在--selinux-enable後面添=false

重啟docker
systemctl start docker

Error starting daemon: SELinux is not support...