I have a few droplets created by docker cloud. I like to install the DO Agent on the droplets, but I can’t find a way to ssh into the droplet. So I can install the agent
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!
Droplets created by Docker Cloud are black boxes by default. You are unable to ssh in to them and mange the host directly. But you’re not out of luck! There is a (poorly documented) method of adding your ssh key to the Droplet utilizing the dockercloud/authorizedkeys Docker image. The image takes an ssh public key and makes it available to the host.
It is available as a predefined service on Docker Cloud:

The two key things to make sure are configured are the AUTHORIZED_KEYS environmental variable and a volume mounting /user in the container to /root on the host:

You’ll also likely want to configure the container to “autodestroy.” After the service runs, you should be able to ssh into the Droplet as you normally would to the root users.
Once you are able to access the Droplet via ssh, you can install the agent manually:
curl -sSL https://agent.digitalocean.com/install.sh | sh
Check out this tutorial for all the details.
Maybe running the agent itself in a container could obviate the need to ssh into the droplets?!
https://github.com/digitalocean/do-agent#docker
Haven’t tested it though…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.