Report this

What is the reason for this report?

Doctl Spinup droplet from previous snapshot

Posted on January 10, 2017

I’ve been trying to spinup droplets from previous snapshots, but the cli command requires the image Slug. is there a way to add a slug to a snapshot ?



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.

@Skyscrapers

As far as I can see, you can’t add a slug, though you don’t need to provide doctl with a slug to create a new Droplet using a previously generated snapshot, you just need to pass the ID of the snapshot in place of the slug.

So, for example, I pulled a list of images using:

doctl compute image list

The last image in the list was a snapshot I created before running that command. I then took the ID of that image and passed it to the create command and it created a new droplet using the snapshot.

doctl compute droplet create name --size 8gb --image ID_OF_IMAGE --region nyc1 --ssh-keys FP_SSHKEY

Just sub out ID_OF_IMAGE with the image ID of your snapshot and FP_SSHKEY with the fingerprint for your SSH Key.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.