Error starting daemon: SELinux is not supported

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error starting daemon: SELinux is not supported相关的知识,希望对你有一定的参考价值。

1月 05 16:45:39 tomcat8 systemd[1]: Starting Docker Application Container Engine...
1月 05 16:45:39 tomcat8 dockerd-current[34843]: time="2019-01-05T16:45:39.623363594+08:00" level=warning msg="could not change group /var/run/docker.sock ...ot found"
1月 05 16:45:39 tomcat8 dockerd-current[34843]: time="2019-01-05T16:45:39.644220095+08:00" level=info msg="libcontainerd: new containerd process, pid: 34848"
1月 05 16:45:42 tomcat8 dockerd-current[34843]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot...ed=false)
1月 05 16:45:42 tomcat8 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
1月 05 16:45:42 tomcat8 systemd[1]: Failed to start Docker Application Container Engine.
1月 05 16:45:42 tomcat8 systemd[1]: Unit docker.service entered failed state.
1月 05 16:45:42 tomcat8 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

原因:
linux的内核中的SELinux不支持 overlay2 graph driver

解决办法:
修改配置文件
vi /etc/sysconfig/docker

    原文内容:
Modify these options if you want to change the way the docker daemon runs
OPTIONS=‘--selinux-enabled --log-driver=journald --signature-verification=false‘

    修改后内容

Modify these options if you want to change the way the docker daemon runs
OPTIONS=‘--selinux-enabled=false --log-driver=journald --signature-verification=false‘

重启测试正常

[[email protected] ~]# service docker start           
Redirecting to /bin/systemctl start  docker.service
[[email protected] ~]# 

[[email protected] ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[[email protected] ~]# 

以上是关于Error starting daemon: SELinux is not supported的主要内容,如果未能解决你的问题,请参考以下文章

Error starting daemon: SELinux is not support...

Error starting daemon: SELinux is not supported

Error response from daemon: driver failed... Error: failed to start containers...

解决 docker 报错: Error starting daemon: error initializing graphdriver: backing file system is unsuppor

linux下启动mysql提示:Timeout error occurred trying to start MySQL Daemon

adb devices 显示 * daemon not running. starting it now on port 5037 * CreateProcess failure, error 2