From 719b040ae5dd18c999b6a7db40e31cfe168ae0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Mon, 10 Feb 2025 01:42:42 +0800 Subject: [PATCH] fix(pipeline): add volume mount for Docker socket in executeFreeleapsPipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'), + ] ) ] ) {