heinv
By:
heinv

How to script the creation of new droplet using an image snapshot

July 19, 2017 107 views
Deployment Ubuntu 16.04

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

2 comments
Be the first one to answer this question.