diff --git a/Jenkinsfile b/Jenkinsfile index 006ad55..3d819d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { docker { image 'alpine:3.17.3' // Mount docker socket for docker-in-docker - args '-v /var/run/docker.sock:/var/run/docker.sock' + args '-v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker' } } stages { @@ -19,8 +19,7 @@ pipeline { steps { sh """ apk update && \ - apk del docker && \ - apk add --no-cache git docker-cli + apk add --no-cache git """ script { env.IMAGE_BASE_NAME = "jdk14-alpine"