I following the getting started tutorial, but I get stuck at this point. When I try to type on my browser both the IP of the manager and the worker
http://192.168.99.100 I get the message 192.168.99.100 or 192.168.99.101 refused to connect.
Both machines are running ok, I deployed the application using the same .yml file as in this part of the tutorial, as instructed. I initialised the swarm on port 2377, as advised, and when I run
docker node lsI get the following message:
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION tzyc2gdlt4k4lsvz01d980324 * myvm1 Ready Active Leader 18.09.0 g6pekmpole72tai65josbnew6 myvm2 Ready Active 18.09.0
Which makes me believe everything is running fine.
Also, when I dpeloy the yml file on the manager and then run
docker stack ps getstartedlab
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS qejmyl4tcx8z getstartedlab_web.1 alexchris/get-started:part2 myvm1 Running Running 35 minutes ago cyuvbf8ko1ae getstartedlab_web.2 alexchris/get-started:part2 myvm2 Running Running 35 minutes ago on74aelrfygm getstartedlab_web.3 alexchris/get-started:part2 myvm1 Running Running 35 minutes ago yod8gys4i298 getstartedlab_web.4 alexchris/get-started:part2 myvm2 Running Running 35 minutes ago sc77zg8pcs9v getstartedlab_web.5 alexchris/get-started:part2 myvm2 Running Running 35 minutes ago
Which again should be a signal that everything is going fine, but still I can’t connect to the virtual machines.
I tried to run the curl command and this is the output:
curl http://192.168.99.100 curl: (7) Failed to connect to 192.168.99.100 port 80: Connection refused
I tried to tear down the swarm removed the stack, restarted the docker daemon and repeated the process but I had no luck. I am on xubuntu 18.04 bionic and using docker version 18.09.0.
Could anyone help to understand why I cannot reach service?