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

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.

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

groupadd docker

再次尝试启动docker即可

systemctl enable docker  && systemctl start docker
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值