diff --git a/Jenkinsfile b/Jenkinsfile index ea9c0ce..5b6d0f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,7 @@ spec: image: docker:18.06-dind securityContext: privileged: true + runAsUser: 0 volumeMounts: - name: docker-graph-storage mountPath: /var/lib/docker @@ -28,8 +29,12 @@ spec: image: docker:18-git tty: true env: - - name: DOCKER_HOST - value: tcp://localhost:2375 + - name: DOCKER_HOST + value: tcp://localhost:2375 + - name: HOME + value: /home/jenkins/agent + securityContext: + runAsUser: 1000 volumes: - name: docker-graph-storage emptyDir: {}