gpt4 book ai didi

docker - 覆盖图形驱动程序不支持 SELinux

转载 作者:太空宇宙 更新时间:2023-11-03 17:13:12 34 4
gpt4 key购买 nike

当我安装 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.

当我运行 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

谢谢我的 friend

最佳答案

Docker 版本 1.13.1

对于 CentOS Linux 版本 7.2.1511 (Core),确保将以下 DOCKER_STORAGE_OPTIONS 选项设置为 devicemapper

bash # vi /etc/sysconfig/docker-storage
...
DOCKER_STORAGE_OPTIONS="--storage-driver devicemapper "
...

bash # vi /etc/sysconfig/docker-storage-setup
...
STORAGE_DRIVER=devicemapper
...

关于docker - 覆盖图形驱动程序不支持 SELinux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45461307/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com