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

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)

attachments-2020-07-2N1O50Yn5f06c73330f3d.png

解决方案:


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


重新编辑docker配置文件:


vi /etc/sysconfig/docker

attachments-2020-07-5szp082D5f06c760abb96.png

改为:


attachments-2020-07-LdFWUtiQ5f06c774e7d2d.png


然后systemctl start docker 就好啦


  • 发表于 2020-07-09 15:30
  • 阅读 ( 2089 )
  • 分类:linux

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

657 篇文章

作家榜 »

  1. omicsgene 657 文章
  2. 安生水 327 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. rzx 67 文章
  8. xun 66 文章