Lightweight container which answers with your IP when called.
406
A docker container which returns a requestors IP address Page is PHP, run in lighttpd, in alpine, to keep the image tiny (~20MB). Also configured to log out to docker logs output.
docker build -t myip .
docker run --name "myip" -p 80:80 myip
Note: Naturally, calling this locally will give a local IP :)
curl http://localhost:80/
Content type
Image
Digest
Size
8.9 MB
Last updated
over 8 years ago
docker pull dalgibbard/myip_docker