Docker Swarm setup

Ok that worked beautifully. BTW the command for logs is docker service logs <service_name>.

I’m still wondering about setting up a load balancer. Because Docker forces the same service on multiple ports I’m not sure if a typical AWS ELB will be able to point to them individually. I can setup a target group with a port specific to the service but the ELB itself doesn’t seem translate the incoming port 9080 to the specific target port.

I suspect using another proxy method would be the solution but I wanted to ask in case I’m setting the ELB up incorrectly.

Aside from that just a couple points about mistakes on the Deploy section of the website:

  1. In the Ports used by different nodes section the service address is listed as 9090 but everywhere else in the same doc it’s 9080
  2. In the docker section it says to list containers use docker-machine ps should be docker machine ls
  3. I don’t believe the Deploy section mentions a suggestion for setting memory to half the size of the machine’s capacity. It’s listed elsewhere on the docs but would be good for new users to see that right in deploy. Mater of fact explaining why the LRU memory setting is important might be helpful.

Thanks