Go to file
2019-01-10 00:28:38 +01:00
.gitignore New build system (#9) 2018-08-09 11:05:36 +02:00
app.go refactor: code review. 2019-01-10 00:28:38 +01:00
Dockerfile Use go modules (#15) 2019-01-09 23:58:52 +01:00
go.mod Use go modules (#15) 2019-01-09 23:58:52 +01:00
go.sum Use go modules (#15) 2019-01-09 23:58:52 +01:00
LICENSE Create LICENSE 2018-10-18 00:07:50 +02:00
Makefile Use go modules (#15) 2019-01-09 23:58:52 +01:00
README.md Add badge 2018-10-18 00:27:48 +02:00

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: */*