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:// -H unix:///var/run/docker.sock --cluster-store consul:// --label node=doc8app1 --exec-opt native.cgroupdriver=cgroupfs

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

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://


(Funkytaco) #2

Still no luck with this.