Question

Spawning multiple droplets from single image

  • Posted January 29, 2015

Is it possible to craft a custom image based on the regular ubuntu droplet, then spawn X amount of them programmatically.

That way I would only have to setup one VM, but scale it out to as many as I need on the fly without having to install/setup each on individually.

Subscribe
Share

Submit an 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.

Brilliant! By chance know how much it cost to hold a single snapshot image.

Yes, you can spin up a droplet, install whatever you like on it, and then take a snapshot of it. Then, whenever you need to replicate that setup, create a new droplet off the snapshot instead of the OS image. A snapshot is a complete copy of a Droplet’s filesystem, so it contains everything that was on the Droplet.

You can use the List a User’s Images API call to list your images - including snapshots - to get the image ID for the snapshot which you can then supply as the image ID when creating a new Droplet.