docker-consul
docker-consul copied to clipboard
Node is seen in active state even my docker daemon is not running.
I 've 2 hosts where I 've docker running. Consul is also running on a docker container.
[root@docker2 ~]#docker exec -it 7e74638cb211 consul members Node Address Status Type Build Protocol node1 172.16.131.253:8301 alive server 0.5.0 2 node2 172.16.131.252:8301 alive server 0.5.0 2
I shows both my node as alive whereas my node2 is not even running docker at the moment. Docker on this node actually kind of crashed by consul is not able to detect that.
[root@docker1 ~]# docker ps FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
Please suggest.
Now when I started docker again and didn't restart the consul container the status was marked was failed. node2 172.16.131.252:8301 failed server 0.5.0 2 node1 172.16.131.253:8301 alive server 0.5.0 2
This can create a lot of confusion and issues.
This could have been fixed with leave_on_terminate being turned on by default. Though keep in mind we split into several different images.