Docker: Refer to registry by ip address
问题 I have a Docker image I want to push to my registry (hosted on localhost ). I do: docker push localhost:5000/my_image and works properly. However, if I tag the image and push it by: docker push 172.20.20.20:5000/my_image I get an error. The push refers to a repository [172.20.20.20:5000/my_tomcat] (len: 1) unable to ping registry endpoint https://172.20.20.20:5000/v0/ v2 ping attempt failed with error: Get https://172.20.20.20:5000/v2/: Gateway Time-out Can't I refer to registry by IP? If so,