docker swarm mode default by boot2docker method can not access ping each container service

docker swarm mode default by boot2docker method can not ping each container service

so before we create our swarm service, we need create our overlay network:
$ docker network create --driver overlay my-net

then create service with  parameter "--network my-net".
for example:
$ docker service create --replicas 1 --name consul --network my-net -p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302 -p 8302:8302/udp -p 8400:8400 -p 8500:8500 -p 8600:8600 consul agent -server -bootstrap-expect 1 -ui -client 0.0.0.0 -advertise 192.168.3.132 -node=swarm1

Last:
Thanks!

Comments

Popular posts from this blog

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3

Global can earn money wordpress blog Advertising Alliance Introduction–1 BidVertiser

pkrss发布