I’m new to Docker as well as to Docker for AWS, so please forgive me if I’ve missed something obvious and so this is a stupid set of questions…
When I SSH into my swarm using the SSH address in “Outputs”, I am attached randomly to one of my manager nodes. I get that…ELB is round-robin directing the SSH connection.
But once I’m logged onto a manager, it appears that docker containers that I start using “docker run” actually run on the manager I’m SSH’d into. If I start a container, exit my SSH session, and SSH again, I log into a different manager. Then “docker ps” doesn’t show the container I launched in the prior SSH session…apparently because its really running on the first manager I SSHd into and now I’m on a different manager.
So where is the “swarm” behavior? Shouldn’t my container be running on one of the worker nodes, and shouldn’t the managers show a common view of my swarm? Is there a different tool than “docker” I’m supposed to run to get swarm behavior?
TIA for any enlightenment.