操作系统信息
虚拟机,CentOS Linux release 7.9.2009 ,内存32G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.17”, GitCommit:“953be8927218ec8067e1af2641e540238ffd7576”, GitTreeState:“clean”, BuildDate:“2023-02-22T13:34:27Z”, GoVersion:“go1.19.6”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.17”, GitCommit:“953be8927218ec8067e1af2641e540238ffd7576”, GitTreeState:“clean”, BuildDate:“2023-02-22T13:27:46Z”, GoVersion:“go1.19.6”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Client:
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:30:51 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:32:17 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.3
GitCommit: 7880925980b188f4c97b462f709d0db8e8962aff
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
kubesphere v3.4.1
问题是什么
流水线在nodejs18容器下执行docker命令报错 docker: not found,用系统自带的nodejs能正常使用,但是nodejs的版本过低
Jenkins Agent 添加nodejs18配置如下:
流水线中能选择到nodejs18容器: