On Windows 10, I followed the instructions here to create a swarm, and it worked OK. Now I want to be able to connect to each node in the swarm using one of the SSH keys that I have in DO. To try this, I used command:
docker-machine create --driver digitalocean --digitalocean-ssh-key-fingerprint mFingerprint --digitalocean-access-token mToken mNodeName
the command ends up with an error “Error creating machine: Error detecting OS: OS type not recognized”. The droplet is created and I can access it with the ssh key that I wanted to use, but docker is not installed in the droplet. I think that the problem is that docker-machine does not have the ssh key so it cannot connect to the droplet once created.
How should I proceed, in Windows or Linux, to create nodes for the docker swarm to which I can connect using the stored SSH key?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!