No credentials found for docker.io

I get the error msg below when I run my CI locally. The image is on my machine though. Please, what am I doing wrong?. Kindly assist. Thanks.

Looking for prebuilt image gitlab/gitlab-runner-helper:x86_64-ce065b93… job=1 project=0
Failed to load prebuilt image from: /usr/local/bin/helper-images/prebuilt-x86_64.tar.xz error: open /usr/local/bin/helper-images/prebuilt-x86_64.tar.xz: no such file or directory job=1 project=0
Failed to load prebuilt image from: /usr/local/bin/out/helper-images/prebuilt-x86_64.tar.xz error: open /usr/local/bin/out/helper-images/prebuilt-x86_64.tar.xz: no such file or directory job=1 project=0
Loading image form registry: gitlab/gitlab-runner-helper:x86_64-ce065b93 job=1 project=0
No credentials found for docker.io job=1 project=0
Looking for image gitlab/gitlab-runner-helper:x86_64-ce065b93 … job=1 project=0
Pulling docker image gitlab/gitlab-runner-helper:x86_64-ce065b93 …

  • You’re trying to use a docker image that is expected to be located at /usr/local/bin/helper-images/prebuilt-x86_64.tar.xz.
  • As you can see from the logs “no such file or directory”, it doesn’t exist locally.
  • Because the image doesn’t exist locally, docker will try to get it from Docker hub. Because there is no public image with such name on Docker HUB, it tries to query for it using credentials (in case the image isn’t public).
  • And since you don’t have any credentials setup for Docker HUB, you get the No credentials found for docker.io message.

This is only what I suspect is happening. It would be really nice if you would’ve provided the full log and not just this piece.

1 Like

Thank you for the great explanation.It makes sense

1 Like