Docker Community Forums

Share and learn in the Docker community.

Does the consul:// part look right?


(Funkytaco) #1

Hi all, my swarm setup doesn’t seem right.

#/usr/lib/systemd/system/docker.service (on master node)

ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --cluster-store consul://0.0.0.0:8500 --label node=doc8app1 --exec-opt native.cgroupdriver=cgroupfs

#swarm master node
sudo docker run -ti -d --restart=always swarm manage -H :4000 --replication --advertise 10.165.41.51:4000 consul://0.0.0.0:8500/nodes
#two nodes like this (running docker)
sudo docker run -ti -d --restart=always swarm join --addr=10.165.41.49:2375 consul://10.165.41.51:8500/nodes

So my first question is, does the consul:// URI look right for the two nodes?

Also, does this look like the correct way to check the swarm nodes?

docker run --rm swarm list consul://10.165.41.51:8500/nodes

Thanks?


(Funkytaco) #2

Still no luck with this.

.