Question
How can I detect whether a VM is running in DigitalOcean, from within the VM
As the title says, for provisioning purposes I need to find out whether the VM is running in digitalocean. In aws, I query 169.254.169.254, but here that is not available, nor is there any information in the environment.
Thanks,
Add a comment
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.
×