Docker服务启动失败

Docker容器是当前比较火的技术,学习docker,首先需要在你的操作系统上安装docker服务,小编在oracle linux 7.4的系统上安装docker服务后,发现docker服务无法启动,将解决方法分享出来,希望可以帮助到你?

32a127723d03bbeab42506fcea43d7d44931543b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fquality%2Cq_80

工具/原料

  • 电脑HP
  • oracle Linux 7.4
  • Docker 1.13.1

方式/步骤

  1. 1

    步调一:docker安装完当作后,利用号令systemctl start docker.service启动docker办事,呈现报错Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

    d695563104ebf6a7ceacb49fffee1c324a184f3b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80
  2. 2

    步调二:利用号令systemctl status docker.service查看具体的报错日记中呈现"could not change group /var/run/docker.sock to docker: group docker not found"...................SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or ...abled=false).

    4a594f2c8cf1d8a7bf907e3046e34b2c57ee473b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80
  3. 2
  4. 3

    步调三:阐发原因为linux的内核中的SELinux不撑持 overlay2 graph driver ,解决方式有两个,要么启动一个新内核,要么就在docker里禁用selinux,设置参数–selinux-enabled=false,此处我们选择第二种方式.

    57af657f860e7c754457ca41650d3aceabd7bf3b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80
  5. 4

    步调四:vi /etc/sysconfig/docker编纂进行点窜

    OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'点窜为

    OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false',然后保留.

    ef4c24ceaad7726bab415353bf0f64781523b93b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80
  6. 5

    步调五:再次启动docker办事systemctl start docker.service,没有发生报错,systemctl status docker.service查看docker办事已经正常.

    65390a23beb9763e8f618d626ad06de89b61b03b.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80END

注重事项

  • 喜好记得存眷点赞我哦
  • 常识需要共享,一路嗨皮吧
  • 发表于 2022-03-28 20:02
  • 阅读 ( 490 )
  • 分类:其他类型

相关问题

0 条评论

请先 登录 后评论