Go to file
2015-10-14 22:58:01 +02:00
.gitignore Initial commit 2015-09-22 18:40:30 +02:00
app.go websocket support /echo 2015-10-14 22:58:01 +02:00
build.sh Initial commit 2015-09-22 18:40:30 +02:00
Dockerfile Initial commit 2015-09-22 18:40:30 +02:00
README.md Initial commit 2015-09-22 18:40:30 +02:00

whoamI

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

$ docker run -d -P --name iamfoo emilevauge/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: */*