You can show the detail for container system info (hostname, cpu, memory etc..).
It can be fetched using http communication.
- docker run -p 80:4567 kakakikikeke/debug-container
- curl localhost | jq .
if you set an environment variable of "HOSTNAME_ONLY" is true, returnd only container's hostname.
- docker run -p 80:4567 -e HOSTNAME_ONLY=true kakakikikeke/debug-container
- git clone https://github.com/kakakikikeke/debug-container.git
- docker build -t kakakikikeke/debug-container .
- docker run -p 80:4567 kakakikikeke/debug-container