Failed to listen on Docker Socket for the API. Docker安装过程遇到的问题
最近开始学习一下docker,没想到在安装的时候就卡住了。。
根据网上的步骤安装完docker
通过systemctl strat docker
来启动docker
发现无法启动docker
执行journalctl-xe 弹出了以下报错信息
-- Unit 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]: 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 has failed
-- Defined-By: systemd
-- Support: /mailman/listinfo/systemd-devel
--
-- Unit 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 has failed
-- Defined-By: systemd
-- Support: /mailman/listinfo/systemd-devel
--
-- Unit 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