Cookie Consent by TermsFeed

New Docker container: What is my IP?

Sometimes you need to find out your IP address. There are many websites, but in some situations you can't use a web browser.

When you just have a ssh o telnet client, knowing your (external or origin) IP address couldn't be easy.

I've created a new Docker Container with an Alpine Linux and checkmyip software, able to sit and wait for connections. The same service can be used connecting to, but sometimes you want to deploy your own service.

All you have to do is launch  a docker instance of my new image (autobuilt and updated when Alpine base image gets updated).

The container will expose ports 22, 23 and 80. So usage could be:

docker run --rm --name checkmyip -d -p 80:80 -p 22:22 -p 23:23 dragas/checkmyip

If you don't want to expose privileged ports, you can change to something like this:

docker run --rm --name checkmyip -d -p 8000:80 -p 2222:22 -p 2223:23 dragas/checkmyip

Have fun!

Stefano Marinelli

Stefano Marinelli