-
-
Notifications
You must be signed in to change notification settings - Fork 338
Allow setting runners.docker.services in toml #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See also this issue for more background: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27173 |
@npalm I'm working on a PR for this. Will be pretty basic initially, but will work for the docker mirror use case |
If I understand you correctly, @jonmcewen, the problem is, that the mirror disappears if Another question which came into my mind: Why is a job trying to mount a |
Please see the first comment on this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4260 Rest assured I spent many days going round in circles on this issue. I stand behind my solution until a better one is proposed. |
* fix: Pass token to metadata service requests. close: #476 * docs: fix generation tf docs * docs: auto update terraform docs * feat: allow setting runners.docker.services. #489 * add description to new variable * Comment out docker service in example. Improve docs * remove accidentally added file Co-authored-by: Niek Palm <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days. |
Guess this wasn't closed then #491 was merged months ago. |
I've been trying to find a way to configure a docker mirror in the docker+machine runners, but had some problems. I have set runners_docker_registry_mirror
runners_add_dind_volumes
, then a job script ofdocker info
shows theRegistry Mirrors
, but this conflicts with services in jobs such as the auto-devopscode_quality
job, which also try to mountvar/run/docker.sock
.runners_add_dind_volumes
(using insteadrunners_additional_volumes
to mount all but the docker.sock) then the services start correctly, butdocker info
doesn't show the mirror.I think I have a workaround though, in which I start a docker service in the runner by modifying the config.toml
I have a requirement that users can use auto-devops without modification, so simply modifying the service(s) in the pipeline config is not an option.
Have I missed a trick, or is adding
[[runners.docker.services]]
a sensible approach? If so, I'll raise a PR to allow this.The text was updated successfully, but these errors were encountered: