Skip to content

Commit 0a58f59

Browse files
authored
Merge pull request github#36775 from github/repo-sync
Repo sync
2 parents 3ee2a00 + 18032ac commit 0a58f59

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

content/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/deploying-runner-scale-sets-with-actions-runner-controller.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -653,17 +653,21 @@ template:
653653
command: ["/home/runner/run.sh"]
654654
env:
655655
- name: DOCKER_HOST
656-
value: unix:///var/run/docker.sock
656+
value: unix:///run/user/1001/docker.sock
657+
securityContext:
658+
privileged: true
659+
runAsUser: 1001
660+
runAsGroup: 1001
657661
volumeMounts:
658662
- name: work
659663
mountPath: /home/runner/_work
660664
- name: dind-sock
661-
mountPath: /var/run
665+
mountPath: /run/user/1001
662666
- name: dind
663667
image: docker:dind-rootless
664668
args:
665669
- dockerd
666-
- --host=unix:///var/run/docker.sock
670+
- --host=unix:///run/user/1001/docker.sock
667671
securityContext:
668672
privileged: true
669673
runAsUser: 1001
@@ -672,7 +676,7 @@ template:
672676
- name: work
673677
mountPath: /home/runner/_work
674678
- name: dind-sock
675-
mountPath: /var/run
679+
mountPath: /run/user/1001
676680
- name: dind-externals
677681
mountPath: /home/runner/externals
678682
- name: dind-etc
@@ -755,17 +759,21 @@ template:
755759
command: ["/home/runner/run.sh"]
756760
env:
757761
- name: DOCKER_HOST
758-
value: unix:///var/run/docker.sock
762+
value: unix:///run/user/1001/docker.sock
763+
securityContext:
764+
privileged: true
765+
runAsUser: 1001
766+
runAsGroup: 1001
759767
volumeMounts:
760768
- name: work
761769
mountPath: /home/runner/_work
762770
- name: dind-sock
763-
mountPath: /var/run
771+
mountPath: /run/user/1001
764772
- name: dind
765773
image: docker:dind-rootless
766774
args:
767775
- dockerd
768-
- --host=unix:///var/run/docker.sock
776+
- --host=unix:///run/user/1001/docker.sock
769777
securityContext:
770778
privileged: true
771779
runAsUser: 1001
@@ -774,7 +782,7 @@ template:
774782
- name: work
775783
mountPath: /home/runner/_work
776784
- name: dind-sock
777-
mountPath: /var/run
785+
mountPath: /run/user/1001
778786
- name: dind-externals
779787
mountPath: /home/runner/externals
780788
- name: dind-etc

0 commit comments

Comments
 (0)