SELinux is not supported by the graphics overlay driver

When I installed docker and ran service docker start

it I got this message:

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

      

When I ran journalctl -xe

I got this message:

8月 02 20:42:11 centos-master systemd[1]: Unit docker-storage-setup.service entered failed state.
8月 02 20:42:11 centos-master systemd[1]: docker-storage-setup.service failed.
8月 02 20:42:11 centos-master systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun starting up.
8月 02 20:42:11 centos-master dockerd-current[32672]: time="2017-08-02T20:42:11.667102874+08:00" level=info msg="libcontainerd: new containerd process, pid: 32676"
8月 02 20:42:11 centos-master dockerd-current[32672]: time="2017-08-02T20:42:11.681065709+08:00" level=info msg="[graphdriver] using prior storage driver \"overlay\""
8月 02 20:42:12 centos-master dockerd-current[32672]: time="2017-08-02T20:42:12.045251482+08:00" level=fatal msg="Error starting daemon: SELinux is not supported with the overlay graph driver
802 20:42:12 centos-master systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
802 20:42:12 centos-master systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed

      

thanks to my friends

+3


source to share


2 answers


According to matrix compatibility, docker-1.13 for CentOS only supports devicemapper

.



You're having a similar issue with docker trying to start by default with overlay2

, allowing the transition to docker-1.12.

0


source


Docker version 1.13.1

CentOS Linux Version 7.2.1511 (Core)

bash # cat  /etc/sysconfig/docker-storage

      



DOCKER_STORAGE_OPTIONS = "- devicemapper storage driver"

bash # cat  /etc/sysconfig/docker-storage-setup

      

STORAGE_DRIVER = devicemapper

-1


source







All Articles