Add DockerHub IP addresses on whitelist

echinopsii picture echinopsii · Aug 20, 2014 · Viewed 10.8k times · Source

I would like to know the IP address of dockerhub to add them on my whitelist. I didn't find any kind of documentation providing this like the github one. But maybe I'm blind ?

Thank you

Answer

Sabin picture Sabin · May 28, 2015

You can do curl -v https://index.docker.io:443 to get the ip-address.
Currently, the ip address is 52.5.199.233, however this might change over time. If it change, do the curl again and replace the ip-address.

Update:

Now, Docker Hub doesn't have static IP that can be whitelist. Docker Hub is based on Amazon ELB, so they can change any time.

So whitelisting Docker Hub based on IP is not a good solution. If you still need to do it anyway, this post might help: https://serverfault.com/questions/665191/whitelist-elastic-load-balancer-based-on-ip