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?
This textbox defaults to using Markdown to format your 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!