Docker Community Forums

Share and learn in the Docker community.

Stack created on Swarm in part4 isn't available from the master or workers


#1

Hi,

I’m working through the following section of the getting started https://docs.docker.com/get-started/part4/

I’ve created machines on Hyper-V for windows 10 (1803), and can see my machines are in a swarm

PS D:\mydocker\part3> docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
vuce91wci5dz8a404pug9demi * master1 Ready Active Reachable 18.09.0
yrmnodi7208sfi3rno88xwmws worker1 Ready Active 18.09.0
2e6qu62zu33ma3rx9p1drvzfo worker2 Ready Active 18.09.0

when I deploy the stack all seems to be ok, I can see the stack

PS D:\mydocker\part3> docker stack ls
NAME SERVICES ORCHESTRATOR
mystack 2 Swarm

and the services
PS D:\mydocker\part3> docker stack services mystack
ID NAME MODE REPLICAS IMAGE PORTS
qi3qo851wcf3 mystack_visualizer replicated 1/1 dockersamples/visualizer:stable *:8080->8080/tcp
ub6dl7z54mwp mystack_web replicated 1/1 andrewbrunton/getting-started:part2 *:80->80/tcp

however if I then try and navigate to the address http://[ip of master]:80 or :8080 I get unable to connect

I’ve checked on the master and can see it is listening, but it seems to be listening on ipv6 and not on ipv4 ?

Please can someone help :slight_smile:

Thanks in advance

Andrew