fix(pipeline): add volume mount for Docker socket in executeFreeleapsPipeline

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-10 01:42:42 +08:00
parent fe846ab937
commit 719b040ae5

View File

@ -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'),
]
)
]
) {