Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes kaniko sh:睡眠:未找到_Kubernetes_Jenkins Pipeline - Fatal编程技术网

Kubernetes kaniko 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

我尝试使用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`/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内核不是更“有意义”吗?我想知道你是否解决了你的问题,以及你是如何做到的。