fix(pipeline): add volume mount for Docker socket in executeFreeleapsPipeline
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
fe846ab937
commit
719b040ae5
@ -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'),
|
||||
]
|
||||
)
|
||||
]
|
||||
) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user