Skip to content

Built-in podTemplate - issue with docker #3202

@Levan-Medoshvili

Description

@Levan-Medoshvili

Hello

I am trying to build docker image using base built-in podTemplate.
At the end of the Dockerfile I need to specify secret file (in jenkins docker build --secret), but the --secret flag not recognized. For that I need newer version of docker.
When I am checking docker version, it gives me 3.0.1
But as I looked in documentations, base image must have 18.06.0 version.

Base Image Template

This is simple Jenkinsfile that I am using to check the docker version

pipeline {
	agent {
		label 'base'
	}	
	stages {
		stage('Build Docker Image') {
			steps{
				container ('base') {
					sh 'docker --version'
				}
			}
		}
	}
}

Am I missing something? Or maybe there is issue with podTemplate?

Environment:
1 Control Plane and 2 worker nodes
Kubernetes Version: 1.29
Kubesphere Version: 3.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions