Report this

What is the reason for this report?

Spawning multiple droplets from single image

Posted on 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.



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.

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.

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

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.