ec2metadata

cloud guest utilities

Debian Debian
RUN apt-get update && \ apt-get install -y cloud-guest-utils
Ubuntu
RUN apt-get update && \ apt-get install -y cloud-guest-utils
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y cloud-guest-utils
CentOS
RUN yum install -y cloud-utils
Fedora
RUN dnf install -y cloud-utils
Raspbian
RUN apt-get update && \ apt-get install -y cloud-guest-utils
click the source code to copy install ec2metadata on any operating system with command-not-found.com