覆盖图驱动程序不支持SELinux

xzg*_*xzg 4 centos docker kubernetes kubectl

当我安装docker并运行时,service docker start我收到此消息:

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
Run Code Online (Sandbox Code Playgroud)

我跑的时候journalctl -xe收到了这条消息:

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
8? 02 20:42:12 centos-master systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
8? 02 20:42:12 centos-master systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
Run Code Online (Sandbox Code Playgroud)

谢谢我的朋友们

小智 15

Docker版本1.13.1

CentOS Linux发行版7.2.1511(核心版)

bash # cat  /etc/sysconfig/docker-storage
Run Code Online (Sandbox Code Playgroud)

DOCKER_STORAGE_OPTIONS =" - 存储驱动程序devicemapper"

bash # cat  /etc/sysconfig/docker-storage-setup
Run Code Online (Sandbox Code Playgroud)

STORAGE_DRIVER = devicemapper


Cav*_*vaz 3

根据兼容性矩阵, CentOS 的 docker-1.13 仅支持devicemapper.

docker 尝试默认启动时遇到了类似的问题overlay2,解决了降级到 docker-1.12 的问题。