This is similar to Unable to SSH to worker nodes from master but I didn’t see a fix that worked for me there.
ssh -A -p 50000 docker@ should connect to my docker-manager node
I get a connection refused error
This happens typically on my ‘developer’ swarm which I shut down each evening to save on cost. Each scale set is ‘deallocated’. Once restarted I am unable to connect to either manager or swarm nodes. Azure portal lists machines as being available and started etc. but SSH daemon appears not to be running on the machines.
Steps to reproduce the behavior
- Create a Resource group using the docker-azure CE edition template.
- Connect using SSH to manager node and confirm that connection works
- Navigate to docker-node scale set and select “deallocate”
- Navigate to docker-manager scale set and select “deallocate”
- Wait a few minutes
- Return to docker-manager scale set and select “start”
- Return to docker-node scale set and select “start”
- Attempt to once again connect using SSH to manager node. Connection is refused.
This looks to me like an issue with the either the “agent” container or possibly the docker daemon not starting up on a machine restart, or perhaps some missing metadata or something preventing these containers from starting. Any ideas on how to fix?