How do I power off a droplet from a command line (to create a snapshot).

  • Posted August 4, 2013

The text seems to suggest to power off a droplet from the command line to create a snapshot. But it does show how to do it.


I use poweroff. But you can also use shutdown -h now

This comment has been deleted

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.

In Ubuntu:<br/><code>sudo shutdown -h now</code>

<code>sudo shutdown -h now</code> as Pablo said, or <code>sudo poweroff</code>.

ehm… silly question but how do we “power on” a droplet? I don’t see no power on button.

I used sudo poweroff in terminal, got locked out of SSH, and still had to power off from the web UI. After I powered off from the web UI and took a snapshot, my droplet powered on as soon as the snapshot finished (without me clicking “power on”) and my SSH access was reestablished.

You still have to power it off from the Web UI before taking a snapshot. I was not able to take one after shutting it down. I had to explicitly power it off in the web UI

Hello there,

You can power off the droplet via your DigitalOcean account as well. This option is quite easy to execute and it is available at all times.

The other options are to power off the droplet via ssh or using the console. You can execute shutdown -h now or poweroff


I did sudo poweroff but the control panel never showed it being powered off until I clicked the power off button in the control panel

The “poweroff” command worked perfectly for me when I used it after logging in as ROOT (so no need for sudo). When I went back to web interface, the droplet had indeed been powered down.

I don’t think the problem is completely fixed. I had to request console access from the Web UI for it to recognize that I powered off from terminal.

This comment has been deleted