Request:
curl -Ss http://localhost | jq
Response:
{
"hostname": "my-laptop",
"ip": [
"172.17.0.1",
],
"host": "localhost",
"url": "/api/v1/status",
"headers": {
"Accept": [
"*/*"
],
"User-Agent": [
"curl/7.59.0"
]
},
"remote_addr": "172.17.0.1:52550",
"user_agent": "curl/7.59.0",
"content_type": "application/json"
}
Request:
curl -Ss http://localhost/ping | jq
Response:
{
"ping": "pong"
}
Request:
curl -Ss http://localhost/metrics
Response:
promhttp_metric_handler_requests_total{code="200"} 0
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
To start docker image run:
docker run --rm -p 80:80 krezz/whoami
| Environment variable | Default value | Required | Description |
|---|---|---|---|
WEB_SERVER_HOST | 0.0.0.0 | false | Web server listen host |
WEB_SERVER_PORT | 80 | false | Web server listen port |
Content type
Image
Digest
Size
9.3 MB
Last updated
almost 6 years ago
docker pull krezz/whoami