Query AWS metadata service within an EC2 instance to get info about said instance's self.
docker run -it peopleperhour/ec2metadata --all
For more info to get specific info there is
docker run -it peopleperhour/ec2metadata help
This images uses Alpine, https://github.com/gliderlabs/docker-alpine, a small footprint Docker OS with a basic package manager in order
to get a small image that would contain bash and curl. The final image should be ~9 MB.
This is an automated build so I chose to not use
gliderlabs/alpine:latestbut resorted in stable