Add DockerHub IP addresses on whitelist

∥☆過路亽.° 提交于 2021-02-19 01:06:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!