docker run -d -p 5000 -v /tmp/registry:/tmp/registry --name="docker-registry" registry
docker push <docker-registry-ip>:5000/ubuntu
Resulting in the error:
FATA[0000] Error: v1 ping attempt failed with error: Get http://<docker-registry-ip>:5000/v1/_ping: dial tcp <docker-registry-ip>:5000: connection refused
I have already added below to /etc/default/docker
and restarted docker service
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=<docker-registry-ip>:5000"