How do I deploy Swarm using docker-machine to AWS using Bastion?

Hello,

My company uses a Bastion to connect to our private VPC which is where I want to create my Docker swarm. I normally connect to any EC2 instance in our vpc using my ~/.ssh/config file which redirects the ssh to our bastion host.

The problem is that docker-machine doesn't seem to have the capabilities to support this as indicated in https://github.com/docker/machine/pull/3410. Has anyone found a workaround for this or do I just use a different way to deploy swarm? Any suggestions if that is the case?

submitted by /u/jwdatascience
[link] [comments]
Source: Reddit