Sign inSign up

dalgibbard/myip_docker

By dalgibbard

•Updated over 8 years ago

Lightweight container which answers with your IP when called.

Image
0

406

dalgibbard/myip_docker repository overview

⁠myip_docker

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.

⁠Build

docker build -t myip .

⁠Run

docker run --name "myip" -p 80:80 myip

⁠Call

Note: Naturally, calling this locally will give a local IP :)

curl http://localhost:80/

Tag summary

Content type

Image

Digest

Size

8.9 MB

Last updated

over 8 years ago

docker pull dalgibbard/myip_docker