赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。