By Hein
It looks like the doctl CLI does not support creation of a new droplet based on a snapshot. Is there any other way to achieve the same?
Usage: doctl compute droplet create <droplet-name> [droplet-name …] [flags] Aliases: create, c Flags: –enable-backups Backup droplet –enable-ipv6 IPv6 support –enable-monitoring Monitoring –enable-private-networking Private networking –format string Columns for output in a comma separated list. Possible values: ID,Name,PublicIPv4,PrivateIPv4,PublicIPv6,Memory,VCPUs,Disk,Region,Image,Status,Tags –image string Droplet image (required) –no-header hide headers –region string Droplet region (required) –size string Droplet size (required) –ssh-keys value SSH Keys or fingerprints (default []) –tag-name string Tag name –tag-names value Tag names (default []) –user-data string User data –user-data-file string User data file –volumes value Volumes to attach (default []) –wait Wait for droplet to be created
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!
This question was answered by @heinv:
Managed to create a new droplet as follows: doctl compute droplet create <newdropletname> --size 512mb --image <id of snapshot> --region <id of region>
The id of the snapshot should be one listed in “doctl compute image list” The size of the new droplet should be one listed in “doctl compute size list” The region of the new droplet should be one listed in “doctl compute region list”
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.