Container image that return info about the running pod
/
: web page/json
: info as json
{
"hostname": "1c314e3d63cd",
"ip": "172.17.0.2",
"method": "GET",
"namespace": "",
"remote_addr": "172.17.0.1",
"uri": "/json"
}
docker build -t pod-info:1.0.0 .
docker run -p 8080:8080 --name pod-indo pod-info:1.0.0