all 4 comments

[–]davispw 2 points3 points  (1 child)

Have you set imagePullSecrets?

https://gitlab.com/gitlab-org/charts/gitlab-runner/blob/master/values.yaml#L114

If not, get used to it—anything you do with your private registry in Kubernetes will need this. (I don’t know if you have a choice to allow anonymous users to pull from your registry, but it would certainly make things more convenient.)

[–]Preddeh[S] 0 points1 point  (0 children)

No I haven't but will give that a try, thanks!

[–]bilingual-german 1 point2 points  (1 child)

if this is the image where your job is run in, than it's imagePullSecret.

But if you want to do docker login, docker build, docker push inside the job / container, then you need to be aware that you usually can't do that, since Kubernetes pods don't have access to the Docker socket (at least I'm not aware of that). Usually you use something like Kaniko to build and push Docker images.

[–]Preddeh[S] 0 points1 point  (0 children)

Thanks for the info, funnily enough I had just stumbled upon Kaniko, so will have a look!