Github EKS runner Dind Container Share Node /var/lib/docker #3865
Unanswered
prfdevsecops
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I want to share the /var/lib/docker directory of node to dind container, that is not happening, can you please guide me or give me the correct yaml file for that.
Yaml content I am using it. In this tried to enable dind block and mount the /var/lib/docker but that is not happening.
githubConfigUrl: "https://github.piramalfinance.com/enterprises/piramal-retail-finance"
maxRunners: 15
minRunners: 2
runnerGroup: "Build-Runners"
runnerScaleSetName: "eks-prod"
containerMode:
type: "dind" ## type can be set to dind or kubernetes
template:
spec:
containers:
image: ghcr.io/actions/actions-runner:latest
command: ["/home/runner/run.sh"]
resources:
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "4Gi"
cpu: "2"
If this solution is not possible please provide me solution of using pv and pvc so I cache my images in workflow. Because everytime it is going to pull images again & again.
thanks,
Dakshraj Goyal
Beta Was this translation helpful? Give feedback.
All reactions