You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
helm - let us overwrite the docker:dind image #3997
hey @julien-michaud,
In our deployment we achieved this by specifying the template part of the values in the json file and passing it to the helm deployment by --set-json tempate=$(json) and it works perfectly fine for us for a longer time already :)
Hello! We used to circumvent this by rewriting the template spec entirely for our needs, but it is no longer possible on 0.12.0 because a dind initContainer is now always added regardless of the template spec values. 😞
andrey-petrenko-develeap commented on Aug 19, 2025
hey @julien-michaud, In our deployment we achieved this by specifying the template part of the values in the json file and passing it to the helm deployment by --set-json tempate=$(json) and it works perfectly fine for us for a longer time already :)
Hi, @szc1wz ! Could you provide an example, please?
Reacted by Matthieu Vivares, David Álvarez Quiroga and Eliezer González
and here you can either put a static values there or dynamically put the values there with a script which would replace the values.
Next execute the helm command like this: helm upgrade <runner-name> --install --namespace <namespace> --create-namespace --version 0.13.0 --values ../values.plain.yaml --wait --timeout 10m oci://something.azurecr.io/helm/gha-runner-scale-set --set-json template=yourjson
Ah yeah, thanks. Anyway, @szc1wz, if I'm not wrong, we can't set the image differently... it forces you to configure all the other values, right? Or when you enter null, does it use the default helm chart values?
so basically, this is the bare minimum which you need to pass in order to change the container images for the docker in docker container, as far as I know. And basically these are the default values (maybe except the DOCKER_GROUP_GID which by default is 123).
I'm doing this by overriding the initContainers array. Pretty gross and fragile, but it does work (for now) --set "template.spec.initContainers[1].image=${{ needs.merge.outputs.registry }}/docker-hub/library/docker:dind"
Swapping the image after rendering works. Kustomize's images transformer also reaches into the AutoscalingRunnerSet, so it finds dind in initContainers on Kubernetes 1.29+ and in containers on older clusters. Render with helm template --kube-version <your cluster version> so the chart picks the layout your cluster gets:
There's also runner.dind.container.image in gha-runner-scale-set-experimental 0.15.0, but its release notes say the experimental charts aren't supported for production.
Activity
julien-michaud commentedon Mar 26, 2025
a pr might already be ready #3851
szc1wz commentedon May 13, 2025
hey @julien-michaud,
In our deployment we achieved this by specifying the template part of the values in the json file and passing it to the helm deployment by --set-json tempate=$(json) and it works perfectly fine for us for a longer time already :)
gdraynz commentedon Jun 13, 2025
Hello! We used to circumvent this by rewriting the template spec entirely for our needs, but it is no longer possible on
0.12.0because adindinitContainer is now always added regardless of the template spec values. 😞andrey-petrenko-develeap commentedon Aug 19, 2025
Hi, @szc1wz ! Could you provide an example, please?
dalvarezquiroga commentedon Mar 11, 2026
Any example to overwrite the image pls? @szc1wz
szc1wz commentedon Mar 12, 2026
@dalvarezquiroga and @andrey-petrenko-develeap, sure, there is a template added in the values file starting of line 305: https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set/values.yaml#L305
what we did, is we saved it as a json file like this:
{ "spec": { "serviceAccountName": null, "initContainers": [ { "name": "dind-externals", "image": null, "command": [ "cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/" ], "imagePullPolicy": null, "volumeMounts": [ { "name": "dind-externals", "mountPath": "/home/runner/tmpDir" } ] } ], "containers": [ { "name": "runner", "image": null, "command": [ "/home/runner/run.sh" ], "env": [ { "name": "DOCKER_HOST", "value": "unix:///var/run/docker.sock" } ], "imagePullPolicy": null, "volumeMounts": [ { "name": "work", "mountPath": "/home/runner/_work" }, { "name": "dind-sock", "mountPath": "/var/run" } ] }, { "name": "dind", "image": null, "args": [ "dockerd", "--host=unix:///var/run/docker.sock", "--group=$(DOCKER_GROUP_GID)" ], "env": [ { "name": "DOCKER_GROUP_GID", "value": "121" } ], "securityContext": { "privileged": true }, "volumeMounts": [ { "name": "work", "mountPath": "/home/runner/_work" }, { "name": "dind-sock", "mountPath": "/var/run" }, { "name": "dind-externals", "mountPath": "/home/runner/externals" } ] } ], "volumes": [ { "name": "work", "emptyDir": {} }, { "name": "dind-sock", "emptyDir": {} }, { "name": "dind-externals", "emptyDir": {} } ] } }and here you can either put a static values there or dynamically put the values there with a script which would replace the values.
Next execute the helm command like this:
helm upgrade <runner-name> --install --namespace <namespace> --create-namespace --version 0.13.0 --values ../values.plain.yaml --wait --timeout 10m oci://something.azurecr.io/helm/gha-runner-scale-set --set-json template=yourjsondalvarezquiroga commentedon Mar 12, 2026
Ah yeah, thanks. Anyway, @szc1wz, if I'm not wrong, we can't set the image differently... it forces you to configure all the other values, right? Or when you enter null, does it use the default helm chart values?
szc1wz commentedon Mar 12, 2026
so basically, this is the bare minimum which you need to pass in order to change the container images for the docker in docker container, as far as I know. And basically these are the default values (maybe except the DOCKER_GROUP_GID which by default is 123).
BowlesCR commentedon Apr 21, 2026
I'm doing this by overriding the initContainers array. Pretty gross and fragile, but it does work (for now)
--set "template.spec.initContainers[1].image=${{ needs.merge.outputs.registry }}/docker-hub/library/docker:dind"Moep90 commentedon Oct 21, 2026
Swapping the image after rendering works. Kustomize's
imagestransformer also reaches into the AutoscalingRunnerSet, so it finds dind ininitContainerson Kubernetes 1.29+ and incontainerson older clusters. Render withhelm template --kube-version <your cluster version>so the chart picks the layout your cluster gets:With Kapitan's mutate generator it's a JSON Patch. The
testop makes the compile fail if dind isn't the second init container:There's also
runner.dind.container.imagein gha-runner-scale-set-experimental 0.15.0, but its release notes say the experimental charts aren't supported for production.Tested against 0.15.0 on kind, full write-up: https://kadet-hub.org/blog/actions-runner-controller-dind/#arc-dind-image