Container registry name

Is there a way to strip off the URL when naming your image?

I know the documentation (GitLab Container Registry | GitLab) says you can’t but I find this very annoying.

Now my image names are like gitlab.example.com:5050/username/project-name:tag which is very long.

I know I can pull these images and then re-tag them locally but I would prefer to have the name correct to start with, so I would prefer to just have username/project-name:tag without the long URL part.

Hi @pmarcoen
you can configure default registries for example for RedHat distribution of Docker (now obsolete) or podman I think using registries.conf.
If you are using Docker CE you always need to specify registry URL otherwise it will try to download from Docker Hub.