Tiny HTTP service that returns the container's hostname. Built with Go, packaged on BusyBox.
docker run -d -p 8000:8000 --name hostname xuqingfeng/hostnamecurl 127.0.0.1:8000Response is plain text, e.g. a1b2c3d4e5f6 (the container hostname).
Echo hostname of the container
go get github.com/xuqingfeng/hostname