Question

using option --digitalocean-ssh-key-fingerprint with docker-machine

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

If you check the cloud-init-output.log and your access log are you able to see docker-machine’s attempts to access the server?