Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in podTemplate - issue with docker #3202

Open
Levan-Medoshvili opened this issue Oct 18, 2024 · 0 comments
Open

Built-in podTemplate - issue with docker #3202

Levan-Medoshvili opened this issue Oct 18, 2024 · 0 comments

Comments

@Levan-Medoshvili
Copy link

Levan-Medoshvili commented Oct 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant