Updated readme
This commit is contained in:
22
README.md
22
README.md
@ -1,21 +1,3 @@
|
|||||||
# whoami
|
[![Build Status](https://build.jcktrue.dk/api/badges/jct/gomie/status.svg)](https://build.jcktrue.dk/jct/gomie)
|
||||||
|
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/containous/whoami.svg)](https://hub.docker.com/r/containous/whoami/)
|
Go implementation of the Homie protocol
|
||||||
|
|
||||||
Tiny Go webserver that prints os information and HTTP request to output
|
|
||||||
|
|
||||||
```console
|
|
||||||
$ 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: */*
|
|
||||||
```
|
|
Reference in New Issue
Block a user