Simple HTTP docker service that prints it's container ID
Go
Switch branches/tags
Nothing to show
Clone or download
jwilder Merge pull request #3 from ph-One/patch-1
Use Multistage build and Alpine
Latest commit 0c89096 Jun 12, 2017
Permalink
Failed to load latest commit information.
.gitignore Initial commit Jul 15, 2014
Dockerfile Use Multistage build and Alpine Jun 10, 2017
LICENSE Initial commit Jul 15, 2014
README.md Fix ports Jun 12, 2016
http.go Add whoami service Jul 15, 2014
whoami@.service Add CoreOS unit file Oct 31, 2014

README.md

whoami

Simple HTTP docker service that prints it's container ID

$ docker run -d -p 8000:8000 --name whoami -t jwilder/whoami
736ab83847bb12dddd8b09969433f3a02d64d5b0be48f7a5c59a594e3a6a3541

$ curl $(hostname --all-ip-addresses | awk '{print $1}'):8000
I'm 736ab83847bb