本文主要是介绍【docker无法启动】 can't create unix socket /var/run/docker.sock: is a directory,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一次重启docker后出现的问题
Oct 18 19:18:20 worker systemd[1]: Starting Docker Application Container Engine...
Oct 18 19:18:20 worker1 dockerd-current[118257]: time="2018-10-18T19:18:20.734668371+08:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
Oct 18 19:18:20 worker dockerd-current[118257]: can't create unix socket /var/run/docker.sock: is a directory
Oct 18 19:18:20 worker systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Oct 18 19:18:20 worker systemd[1]: Failed to start Docker Application Container Engine.
Oct 18 19:18:20 worker systemd[1]: Unit docker.service entered failed state.
Oct 18 19:18:20 worker systemd[1]: docker.service failed.
查看完整的docker无法启动的命令
systemctl status docker.service -l
解决办法
#保守点,把 docker.sock 重命名
cd /var/run $$ mv docker.sock docker.socker_backup
#或者直接删除
rm -rf /var/run/docker.sock/
这篇关于【docker无法启动】 can't create unix socket /var/run/docker.sock: is a directory的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!