I was able to set up a simple insecure local registry following the official docker tutorial. https://docs.docker.com/registry/deploying/
I am confused about the naming convention when using a local registry. In the docs they prepend the image name with <host_ip>:<port>
like so:
docker tag ubuntu:16.04 localhost:5000/my-ubuntu
Then when I go to pull the image from the local registry, for instance docker pull localhost:5000/my-ubuntu
the image still has the <host_ip>:<port>
prepended to it. My question is if there is a way to push/pull the image from the local registry without prepending <host_ip>:<port>
to the image name? I am running some init scripts that grep for specific image names and would prefer if the images did not have the <host_ip>:<port>
prepended to it.