Whitelist DockerHub IPs

I would like to know the dockerhub IP so I can add them to my whitelist. I haven't found any documentation providing this as github. But maybe I'm blind?

thank

+3


source to share


1 answer


You can do curl -v https://index.docker.io:443

to get the ip address.
Currently the IP address 52.5.199.233

, however this may change over time. If it changes, do a curl again and replace the ip address.

Update:



Docker Hub no longer has a static IP address that can be "white". Docker Hub is based on Amabon ELB, so they can change at any time.

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

+3


source







All Articles