How to retrieve image id of running Droplet?

Posted October 8, 2020 755 views

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.

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.

Submit an Answer
1 answer

Hi there,

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

  • doctl compute droplet list