Report this

What is the reason for this report?

How to retrieve image id of running Droplet?

Posted on October 8, 2020

Hi there, I’m having problem while provision my cluster. I’m using Terraform to create droplet and Ansible for configuration management. The problem is I use slug to create droplet instead of image id, and now some command/module is missing, so my Ansible cannot run property anymore. The missing module is iptables on centos-8-x64, two month ago things work smoothly, but not now. You can try to use geerlingguy.docker role to test. Thank in advance.



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.

Hi there,

You could retrieve a list of all of your running Droplets and their IDs by using the following doctl command:

  1. doctl compute droplet list

Regards, Bobby

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.