解决docker启动报错“Error starting daemon: SELinux is not supported with the overlay2 graph driver on this

解决Oracle Linux 7.4上Docker与SELinux的兼容性问题 在Linux系统中,SELinux作为强制访问控制机制,常与容器技术如Docker产生兼容性问题。本文深入分析了SELinux与Docker存储驱动overlay2的冲突原理,特别是在较旧内核版本中的表现。通过对比升级内核、禁用SELinux和更换存储驱动三种解决方案,提供了针对不同场景的最佳实践建议。对于企业生产环境,建议采用分层安全策略,保持SELinux enforcing模式的同时定制策略模块,并详细介绍了权限设置、SELinux标签恢复等实用排查技巧。这些方法能有效平衡系统安全性与容器功能性,适用 阅读详情

#解决docker启动报错“Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. ”

前提:
环境:centos7
已经通过yum安装好了docker

命令:systemctl start docker时启动失败,
systemctl status docker.service查看报错信息,发现:
报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (–selinux-enabled=false)
docker启动失败

解决方案:

意思是说:此linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,

--selinux-enabled=false

重新编辑/etc/sysconfig/docker配置文件:
编辑docker配置文件
vim /etc/sysconfig/docker修改后的内容如下:

OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

然后systemctl start docker成功,如下图:
docker成功

好了,聪明如你,知道了解决docker启动报错的方法,是不是很欢喜 _

还有其他问题的可以在评论区留言或者扫码加博主获取资源或者提问。
在这里插入图片描述

docker启动报错Error starting daemon: Error initializing network controller:.......Iptables not found [root@node02 ~]# systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2021-05-06 阅读详情

相关推荐

MS2107 CVBS转USB2.0 音视频采集芯片,支持1080P@30HZ输出

MS2107 是一款视频和音频采集芯片,支持CVBS转USB2.0 ;可以将 CVBS、S-Video 和音频信号通过 USB接口传送到 PC、智能手机和平板电脑上预览或采集。

TEL18967112838的博客 2079

docker启动报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke

环境:centos7 命令:systemctl start docker systemctl status docker -l 报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux-enabled=false) 解

lemonhjw218的博客 2988

从图像处理到AI:手把手教你用Halcon DL Tool完成第一个缺陷检测项目

本文详细介绍了如何使用Halcon深度学习工具(DL Tool)完成金属表面缺陷检测项目。从环境准备、数据采集标注到模型训练与部署,手把手指导工程师快速构建AI质检系统,显著提升工业缺陷检测效率。特别针对金属反光等难点问题提供实用解决方案。

weixin_42531886的博客 296

Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误

这个问题是由于此linux的内核中的SELinux不支持 overlay2 graph driver,大家修改的时候,一定要注意字母的拼写,我就尴尬了,给整错了,还自己查了半天的错。唉,蠢哭了。 5月 21 10:24:11 localhost.localdomain dockerd-current[4351]: Error starting daemon: SELinux is not supported with the overlay2 grap...

天涯芳草 753

mipi协议中的calibration和scramble模式

在MIPI(Mobile Industry Processor Interface)协议中,calibration(校准)和scramble(加扰)模式是两个重要的特性,它们分别用于优化数据传输的准确性和减少信号干扰。

flomingo1的专栏 2408

CentOS系统MySQL安装与配置全攻略

关系型数据库是数据存储和管理的核心技术,MySQL作为其中最流行的开源数据库,采用客户端-服务器架构实现数据的高效组织与访问。其核心原理基于SQL语言和ACID事务特性,支持多种存储引擎满足不同场景需求。在Linux环境下,通过yum/dnf包管理器可以快速部署MySQL服务,同时支持源码编译实现深度定制。数据库安装后的安全加固和性能调优尤为关键,包括设置复杂密码、配置防火墙规则、调整内存参数等。本文以CentOS 7/8系统为例,详细讲解从基础安装到生产环境优化的全流程,特别针对国内用户遇到的网络问题和依

weixin_32667955的博客 301

2020-09-21

Docker安装seliux遇到的坑 问题描述: docker运行报错,使用 systemctl status docker.service命令提示如下 Error starting daemon: SELinux is not supported with the overlay2 grap…alse) 解决办法 是因为linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,–selinux-en

qq_35945526的博客 240

OpenCv案例(七): 基于OpenCvSharp计算图像的清晰度(自动对焦)

自动对焦,其实是对相机成像的清晰值得计算,若对焦不清晰,成像的清晰度低,视觉效果模糊。若是在工业检测行业,对焦不准确,可能会造成严重后果;对焦准确的图像,其清晰度高,对比度鲜明,层次明显。

qq_37835727的博客 7117

启动docker报错 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke

启动docker的时候提示报错,查看报错信息为 ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/syst...

AZXHNLS81的博客 452

ThingsBoard 3.1.1版本在window本地运行之TB-Gateway服务搭建(三)

TB-gateway服务是TB不可或缺的部分,很多的协议都需要TB-gateway来做分类处理,今天我们就来做TB-Gateway服务搭建。

晚点遇见你,余生都是你! 2477

C# 与欧姆龙 PLC 实战:通过 Ethernet/IP 协议进行设备控制与监控

本文介绍了如何通过C#和Ethernet/IP协议实现与欧姆龙PLC的通信。Ethernet/IP是基于以太网的工业协议,适用于工业设备间的实时数据交换。文章详细讲解了使用EthernetIPSharp库建立连接、读写数据的步骤,并提供了示例代码。此外,还探讨了实时监控、报警系统等高级功能,为工业自动化控制系统开发提供了实用指导。该方法简化了PLC通信开发,提高了系统可靠性和智能化程度。

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 820

docker安装启动报错:Error starting daemon: SELinux is not supported with the overlay2

环境:centos7命令:systemctl start docker          systemctl status docker -l报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel...

java_kider的博客 3208

数字电视中的 Closed Caption (CC) 字幕标准协议

本文将详细介绍 DVB中的 CC 字幕标准协议,包括数据结构格式、字段定义、字段占用比特数以及字段用途。此外,本文还将举例说明如何从 TS 传输流中解析 CC 字幕信息,并组织打包到电视节目中进行显示。

以实战经验介绍行业知识 673

docker报错 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kern

这个问题有两个解决方案 1.在vi /etc/sysconfig/docker中 将其selinux禁用然后重启docker(service docker restart)  但是笔者重启完成后输入docker pull等命令会遇见 Error response from daemon: Get https://index.docker.io/v1/search?q=centos&am...

汐银的博客 1968

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Docker启动报错 Error starting daemon: SELinux is not supported

环境:centos7 安装docker yum install docker -y 启动docker systemctl start docker 出现:Job for docker.service failed because the control process exited with error code. See “systemctl status docke...

小薯条的博客 1784

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

docker启动报错 :Error starting daemon: SELinux is not supported with the overlay2 graph driver on this k

环境:Centos7 命令:systemctl start docker    systemctl status docker.service 解决方案:   意思是此linux的内核中的SELinux不支持 overlay2 graph driver   重新编辑docker配置文件:     vi /etc/sysconfig/docker     改为: ...

qq690452074的专栏 362

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

docker 启动报错:Error starting daemon: SELinux is not supported with the overlay2 graph ...false)

环境:centos7 命令:systemctl start docker           systemctl status docker -l 报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer ...

DPnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnice的博客 594

Docker安装完成后启动报错:Failed to start Docker Application Container Engine

报错如下:显示没有启动 先关闭防火墙:防火墙关闭指令请看 Linux防火墙篇 方法一:更新Linux内核、yum包;删除旧版本的docker,重新安装、重启服务器、重启服务。   卸载:yum remove docker-*   更新Linux内核、yum包:yum update   通过管理员安装 docker 容器 :sudo yum install docker   下一步重启服务器(相当于杀掉所有docker进程)   重启服务:systemctl start docker ...

weixin_48967543的博客 775

记一次安装docker,启动报错的解决方法

第一次在centos中安装docker,由于centos中的yum源中含有docker,所以只需要yum -y install docker 但是启动之后 提示 Job for docker.service failed because the control process exited with error code. See “systemctl status docker.servic...

zhs145612zhs的博客 1696

Centos7 启动docker报错

centos7安装docker后,初次启动docker服务报错: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux...

qq_30599553的博客 539

Docker 进阶篇(一) CentOS 7 离线升级 Docker 完整实战

<think>CentOS 7 EOL导致yum源失效、Docker升级遇到的问题和解决方案。用户提供了完整内容,包括背景、问题、解决步骤。摘要需简洁。</think>CentOS 7服务器离线升级Docker 19.x至26.1.4,因EOL致yum源失效,改配Vault归档源并绕道直接下载RPM强制安装;修复daemon.json中废弃的graph字段,改用data-root后成功启动。

dazhong2012的专栏 539
上一篇: 昊鼎王五:docker容器从入门到实战?
下一篇: 昊鼎王五:创业公司小团队为什么要使用Docker
昊鼎王五
博客等级 码龄8年 37粉丝 182原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址