I posted this in the cloud forum but I think that was the wrong one so I’m posting it here.
I’ve gone through the Swarm tutorial successfully, and the EC2 tutorial successfully (and some other docker/ec2 work), and now I’m ready to create a swarm on EC2. I have done both of these things in isolation, but not together. However, I am finding that the swarm tutorial does not work on EC2. I am unable to connect to the swarm. Can someone point out where I’ve gone wrong? I thought it was a firewall issue, but that seems not to be the case so I am stumped.
My script is here (adapted from the swarm tutorial and the ec2 tutorial): https://gist.github.com/rjurney/c718e614a07f59c2eb73
Note that unlike the docker EC2 tutorial, I had to specify a vpc or I can’t create a docker instance on ec2. I think this is a bug, but I was able to work around it thanks to a solution at the ticket for it (which I have lost) by specifying a public EC2 VPC.
At the end, I can’t connect to the swarm. Port 3376 was not opened in my docker security group (shouldn’t it be opened automatically?), so I manually set port 3376 to be available to my IP, then all IPs. Neither setting improved my inability to connect.
Any help would be greatly appreciated, thanks!