Docker开关不定时遇到自动关闭的情况,docker stats 报错Cannot connect to the Docker daemon at unix:///var/run/docker.sock

wei400804】 在 https://github.com/istoreos/istoreos/issues/1197 发布:
机器n5105,用ESXI装的IStoreOS
更新了几个版本了,都遇到过这个情况(一般几天或十多天遇到一次),每次都是发现HomeAssistant访问不到了,然后打开IStoreOS发现主页上的Docker开关显示为关闭

执行 docker stats
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
执行 /etc/init.d/dockerd status
running

使用top命令发现HomeAssistant进程在运行有CPU占用