template: spec: initContainers: - name: init-dind-externals image: runner:latest imagePullPolicy: Never command: ["cp", "-r", "-v", "/home/runner/externals/.", "/home/runner/tmpDir/"] volumeMounts: - name: dind-externals mountPath: /home/runner/tmpDir containers: - name: runner image: runner:latest imagePullPolicy: Never command: ["/home/runner/run.sh"] env: - name: DOCKER_HOST value: unix:///run/docker/docker.sock volumeMounts: - name: work mountPath: /home/runner/_work - name: dind-sock mountPath: /run/docker readOnly: true - name: dind image: docker:dind args: - dockerd - --host=unix:///run/docker/docker.sock - --group=$(DOCKER_GROUP_GID) env: - name: DOCKER_GROUP_GID value: "123" securityContext: privileged: true volumeMounts: - name: work mountPath: /home/runner/_work - name: dind-sock mountPath: /run/docker - name: dind-externals mountPath: /home/runner/externals volumes: - name: work emptyDir: {} - name: dind-sock emptyDir: {} - name: dind-externals emptyDir: {}