The container which echoes and logs any request and environment variables.
1.1K
A simple container that listens on port 80 (or on the PORT environment variable if provided).
It logs and outputs in the following format (on a single line):
{
"request-path": "/",
"request-headers": {
"content-length": "4",
"host": "test.com",
"accept-encoding": "gzip,deflate,br",
"content-type": "text/plain"
},
"request-body": "test",
"container-envs": {
"HOME": "/home",
"YARN_VERSION": "1.22.5",
"PWD": "/app",
"NODE_VERSION": "15.10.0",
"PORT": "8080",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
}
Content type
Image
Digest
Size
39 MB
Last updated
over 5 years ago
docker pull zitros/container-echo