当前位置:   article > 正文

Failed to listen on Docker Socket for the API. Docker安装过程遇到的问题

failed to listen on docker socket for the api

Failed to listen on Docker Socket for the API. Docker安装过程遇到的问题
最近开始学习一下docker,没想到在安装的时候就卡住了。。

根据网上的步骤安装完docker
通过systemctl strat docker来启动docker
发现无法启动docker
执行journalctl-xe 弹出了以下报错信息

-- Unit docker.socket has begun starting up.
10月 26 20:20:35 VM_0_13_centos systemd[16041]: Failed to chown socket at step GROUP: No such process
10月 26 20:20:35 VM_0_13_centos systemd[1]: docker.socket control process exited, code=exited status=21
10月 26 20:20:35 VM_0_13_centos systemd[1]: Failed to listen on Docker Socket for the API.
-- Subject: Unit docker.socket has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.socket has failed.
-- 
-- The result is failed.
10月 26 20:20:35 VM_0_13_centos systemd[1]: Dependency failed for Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has failed.
-- 
-- The result is dependency.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

`主要的报错原因呢是
Failed to chown socket at step GROUP: No such process
所以添加docker用户组即可解决这个问题
执行

groupadd docker
  • 1

再次尝试启动docker即可

systemctl enable docker  && systemctl start docker
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/429788
推荐阅读
相关标签
  

闽ICP备14008679号