Kubernetes kaniko sh:睡眠:未找到
我尝试使用kaniko在我的k8s集群上构建图像,我得到了以下结果: sh:触摸:未找到Kubernetes kaniko sh:睡眠:未找到,kubernetes,jenkins-pipeline,Kubernetes,Jenkins Pipeline,我尝试使用kaniko在我的k8s集群上构建图像,我得到了以下结果: sh:触摸:未找到 container("kaniko") { sh "kaniko -f `pwd`/Dockerfile -c `pwd` --destination=${ORIGIN_REPO}/${REPO}:${IMAGE_TAG} " } sh:睡眠:未找到 container("kaniko") { sh "kaniko -f `pwd
container("kaniko") {
sh "kaniko -f `pwd`/Dockerfile -c `pwd` --destination=${ORIGIN_REPO}/${REPO}:${IMAGE_TAG} "
}
sh:睡眠:未找到
container("kaniko") {
sh "kaniko -f `pwd`/Dockerfile -c `pwd` --destination=${ORIGIN_REPO}/${REPO}:${IMAGE_TAG} "
}
我想你还得指定一个shell 例如:
container(name: 'kaniko', shell: '/busybox/sh')
我想你还得指定一个shell 例如:
container(name: 'kaniko', shell: '/busybox/sh')
从文件中:
“kaniko executor映像是从头开始的,不包含shell。我们提供gcr.io/kaniko project/executor:debug,这是一个调试映像,由kaniko executor映像和要输入的busybox shell组成
您可以使用shell入口点启动调试映像:
docker run-it--entrypoint=/busybox/sh gcr.io/kaniko project/executor:debug“
来自文档:
“kaniko executor映像是从头开始的,不包含shell。我们提供gcr.io/kaniko project/executor:debug,这是一个调试映像,由kaniko executor映像和要输入的busybox shell组成
您可以使用shell入口点启动调试映像:
docker run-it--entrypoint=/busybox/sh gcr.io/kaniko project/executor:debug“
为什么要标记C#
?这个dockerfile是关于netcore的,哈~那么标记.netcore不是更“有意义”了吗?我想知道你是否解决了这个问题,以及你是怎么做的。你为什么标记C#
?这个dockerfile是关于netcore的,哈~那么标记.net内核不是更“有意义”吗?我想知道你是否解决了你的问题,以及你是如何做到的。