janeczku / docker-machine-vultr

:m: Docker Machine driver for Vultr Cloud
MIT License
192 stars 25 forks source link

Add SnapshotID please ;-) #15

Closed wayneconnolly closed 7 years ago

wayneconnolly commented 7 years ago

Hello,

I don't know GO otherwise I'd attempt to add this request. Simply, Vultr allows for loading a pre-stored snapshot, hostname and label onto the new host. I'd like these to be added in as it is a very handy feature.

In summary, please add;

  1. snapshotid
  2. hostname
  3. label
  4. there are many others available here: https://www.vultr.com/api/#server_create

Example: curl -H 'API-Key: EXAMPLE' https://api.vultr.com/v1/server/create --data 'DCID=1' --data 'VPSPLANID=1' --data 'OSID=127' --data 'SNAPSHOTID=123456asdf456' --data 'hostname=domain.com' --data 'label=domain.com'.

If you can provide some simple guidance to add then I can do so ;-)