diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 474f7e52..a1aa38c4 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -378,7 +378,11 @@ def generateComponentStages(component, configurations) { image: env.imageBuilderImage, ttyEnabled: true, command: 'sleep', - args: 'infinity' + args: 'infinity', + volumeMounts: [ + // We need to mount the docker socket to the container to build the image when using dind as image builder + hostPathVolumeMount(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'), + ] ) ] ) {