If you have live-restore enabled (https://docs.docker.com/engine/admin/live-restore/) and restart the dockerd daemon, once it is back online dockergen can not connect to the endpoint anymore (at least if you run it inside a container):
Nov 09 22:38:01 ch-210to220 dockerd[28683]: dockergen.1 | 2016/11/09 22:38:01 Watching docker events
Nov 09 22:38:01 ch-210to220 dockerd[28683]: dockergen.1 | 2016/11/09 22:38:01 Error retrieving docker server info: cannot connect to Docker endpoint
Nov 09 22:38:01 ch-210to220 dockerd[28683]: dockergen.1 | 2016/11/09 22:38:01 Error listing containers: cannot connect to Docker endpoint
Nov 09 22:38:02 ch-210to220 dockerd[28683]: dockergen.1 | 2016/11/09 22:38:02 Docker daemon connection interrupted
In order to fix it, I have to restart the container. Note that I am using the nginx-proxy container.
If you have live-restore enabled (https://docs.docker.com/engine/admin/live-restore/) and restart the dockerd daemon, once it is back online dockergen can not connect to the endpoint anymore (at least if you run it inside a container):
In order to fix it, I have to restart the container. Note that I am using the nginx-proxy container.
How to reproduce (on Ubuntu Xenial):
1- Enable live-restore: cat > /etc/docker/daemon.json { "live-restore": true }
2- kill -HUP `cat /var/run/docker.pid`
3- service docker restart
4- docker logs -f nginx-proxy
Docker version:
dockergen version: