Not able to push docker images to docker private registry
I have created docker private register in my local
If i tag an image as
10.234.1.254:5000/hello-world and try to push it from another vm to the vm where registry is running – IT FAILS with below error
The push refers to a repository [10.234.1.254:5000/hello-world] unable to ping registry endpoint https://10.234.1.254:5000/v0/ v2 ping attempt failed with error: Get https://10.234.1.254:5000/v2/: EOF v1 ping attempt failed with error: Get https://10.234.1.254:5000/v1/_ping: EOF
I even tried putting
DOCKER_OPTS="--insecure-registry 10.234.1.254:5000" in
/etc/default/docker and restart docker service. But still i get the same error.
How do i tag an image using IP address and port of the private docker registry and push it?