How to retrieve image id of running Droplet?

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.

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.

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