0

When I am at a repo's container registry, I can see this,

enter image description here

However it's not clear ohw that URL works, the URL provided is

gitlab-org/gitlab-runner/alpine-no-root

But I can't run

podman pull gitlab-org/gitlab-runner/alpine-no-root

It asks me to choose between the docker.io or quay.io registry, GitLab isn't an option. Moreover, if I try, to add gitlab.org/, I get an error

$ podman pull "gitlab.org/gitlab-org/gitlab-runner/alpine-no-root"
Trying to pull gitlab.org/gitlab-org/gitlab-runner/alpine-no-root:latest...
Error: initializing image from source docker://gitlab.org/gitlab-org/gitlab-runner/alpine-no-root:latest: invalid character '<' looking for beginning of value

And, if I try to specify registry.gitlab.org I get another -- different error -- and it can't find the repository,

$ podman pull "registry.gitlab.org/gitlab-org/gitlab-runner/alpine-no-root"
Trying to pull registry.gitlab.org/gitlab-org/gitlab-runner/alpine-no-root:latest...
Error: initializing source docker://registry.gitlab.org/gitlab-org/gitlab-runner/alpine-no-root:latest: pinging container registry registry.gitlab.org: Get "https://registry.gitlab.org/v2/": dial tcp: lookup registry.gitlab.org on 127.0.0.1:53: no such host

How do I pull this image?

1 Answer 1

1

You must use

registry.gitlab.com/gitlab-org/gitlab-runner/alpine-no-root
  • The project is gitlab-org
  • The domain is gitlab.com
  • The registry is at registry.gitlab.com

The naming convention on the GitLab registry is,

<registry URL>/<namespace>/<project>/<image>

So you want,

registry.gitlab.com/gitlab-org/gitlab-runner/alpine-no-root

Easy way

Click the clipboard icon to copy the url,

icon for copy

You may think that copies the name, but it copies the full registry URL you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.