gitlab-runner with docker: Global alternative to DOCKER_AUTH_CONFIG ?
Thanks for the awesome gitlab! Its the first time I have an issue: yesterday I spent two hours wondering why my second CI does not work, whereas the first one works like a charm. It fails with error:
Pulling docker image docker.myregistry.com:11011/ubuntu/cppdev:16.04 ... ERROR: Build failed: Error: image ubuntu/cppdev:16.04 not found
Finally I found the problem: I did not set the DOCKER_AUTH_CONFIG variable for my private registry! I guess I need to set it for each git repo? But I have 50+ repositories, and all use the same private registry, so repeatedly setting this for all repos is not super comfortable. And the error was not too helpful in debugging.
Add some way to set a docker registry authentication more easily, if all (or many) repositories use the same registry. This could be for example:
- add private variables that work globally for all repositories or per group
- allow setting the docker authentication from the gitlab-runner user account
- allow setting the docker authentication from the gitlab-runner system config