问题
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
回答1:
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
来源:https://stackoverflow.com/questions/25399671/add-dockerhub-ip-addresses-on-whitelist