CentOS7安装docker启动报错
执行yum install docker -y 命令安装docker然后启动服务 systemctl start docker,服务启动失败
查询日志文件/var/log/messages,显示报错:
Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel.
http://i2.运维网.com/images/blog/201808/22/b635ec66a365d5b3d386e7b07eaf6348.png
问题原因:
此linux的内核中的SELinux不支持 overlay2 graph driver
解决办法:
启动一个新内核,或者在docker里禁用selinux,--selinux-enabled=false
具体操作步骤如下:
首先编辑配docker配置文件
vi /etc/sysconfig/docker
http://i2.运维网.com/images/blog/201808/22/e0a68a85fc22d2706d070da77dca6b56.png
然后启动docker服务就成功了
页:
[1]