Tiny Go webserver that prints os information and HTTP request to output
Switch branches/tags
Clone or download
Latest commit 2305eab Oct 18, 2018
Permalink
Failed to load latest commit information.
.gitignore New build system (#9) Aug 9, 2018
Dockerfile New build system (#9) Aug 9, 2018
Gopkg.lock New build system (#9) Aug 9, 2018
Gopkg.toml New build system (#9) Aug 9, 2018
LICENSE Create LICENSE Oct 17, 2018
Makefile New build system (#9) Aug 9, 2018
README.md Add badge Oct 17, 2018
app.go Fixed the container name (#8) Aug 6, 2018

README.md

whoami

Docker Pulls

Tiny Go webserver that prints os information and HTTP request to output

$ docker run -d -P --name iamfoo containous/whoami
$ docker inspect --format '{{ .NetworkSettings.Ports }}'  iamfoo
map[80/tcp:[{0.0.0.0 32769}]]
$ curl "http://0.0.0.0:32769"
Hostname :  6e0030e67d6a
IP :  127.0.0.1
IP :  ::1
IP :  172.17.0.27
IP :  fe80::42:acff:fe11:1b
GET / HTTP/1.1
Host: 0.0.0.0:32769
User-Agent: curl/7.35.0
Accept: */*