我尝试使用kaniko在我的k8s集群上构建镜像,我得到了如下结果:
sh: touch:未找到
sh:睡眠:未找到
container("kaniko") {
sh "kaniko -f `pwd`/Dockerfile -c `pwd` --destination=${ORIGIN_REPO}/${REPO}:${IMAGE_TAG} "
}发布于 2019-07-30 00:22:36
从Kaniko文档中:
我们提供了gcr.io/ kaniko -project/ executor : debug,这是一个调试镜像,由kaniko执行器镜像和要进入的busybox shell组成。
您可以使用shell入口点启动调试映像:
docker run -it --entrypoint=/busybox/sh gcr.io/kaniko-project/executor:debug"
发布于 2019-06-25 13:35:10
我认为您还必须指定一个shell,
举个例子:
container(name: 'kaniko', shell: '/busybox/sh')https://stackoverflow.com/questions/56747223
复制相似问题