docker-consul icon indicating copy to clipboard operation
docker-consul copied to clipboard

Node is seen in active state even my docker daemon is not running.

Open ashish235 opened this issue 9 years ago • 2 comments

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.

ashish235 avatar Apr 10 '15 10:04 ashish235

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.

ashish235 avatar Apr 10 '15 10:04 ashish235

This could have been fixed with leave_on_terminate being turned on by default. Though keep in mind we split into several different images.

progrium avatar Jun 30 '15 17:06 progrium