Question

How can I create an Image of my existing droplet

Hi,

I see an option to create a droplet via Custom Image. At https://cloud.digitalocean.com/images/custom_images?i=197e0e

I would like to know, how can I create an Image of my existing droplet. What command should I run? Or can you direct me to a tutorial page?

Thanks


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
December 13, 2023

Heya,

You can achieve that by using the Snapshot feature:

https://docs.digitalocean.com/products/images/snapshots/

Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.

When you need to restore the Snapshot on another Droplet, following this tutorial should be enough:

https://docs.digitalocean.com/products/images/snapshots/how-to/create-and-restore-droplets/

alexdo
Site Moderator
Site Moderator badge
December 11, 2023

Heya, @azeemcv

You can first create a snapshot of your droplet and then use the snapshot as image and create the droplet using it, since the snapshots are basically on-demand disk images of DigitalOcean Droplets and volumes saved to your account.

https://docs.digitalocean.com/products/images/snapshots/how-to/snapshot-droplets/

You can later use the snapshot to spin up a new droplet:

https://docs.digitalocean.com/products/images/snapshots/how-to/create-and-restore-droplets/

Hope that this helps!

Bobby Iliev
Site Moderator
Site Moderator badge
December 11, 2023

Hi there,

To create an image of your existing Droplet on DigitalOcean, you can create a Snapshot for your Droplet and then use it as an image:

  1. Log in to your DigitalOcean account: Access your DigitalOcean dashboard at https://cloud.digitalocean.com/.

  2. Navigate to the Droplets page: Find the Droplets section in the dashboard.

  3. Select the Droplet: Choose the Droplet you want to create an image of.

  4. Power Down the Droplet: It’s recommended to power down the Droplet before creating an image to ensure data integrity. You can do this from the Droplet’s control panel.

  5. Create a Snapshot: Go to the ‘Snapshots’ section in the Droplet’s control panel. Here, you can create a snapshot of your Droplet, which is essentially an image of the entire state of the Droplet at that moment.

  6. Name the Snapshot: Provide a name for your snapshot for easy identification.

  7. Initiate the Snapshot Process: Start the snapshot process. This can take some time depending on the size of your Droplet.

  8. Restart the Droplet: Once the snapshot is complete, you can power your Droplet back on.

After you have created the snapshot, it will appear in the ‘Images’ section of your DigitalOcean dashboard. This snapshot can be used to create new Droplets or for backup purposes.

For detailed instructions and best practices, it’s recommended to refer to DigitalOcean’s official documentation here:

https://docs.digitalocean.com/products/images/snapshots/getting-started/quickstart/

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel