<p>I have tried to build images on my k8s cluster using kaniko,i got this:</p>

<p>sh: touch: not found</p>

<p>sh: sleep: not found</p>

<pre><code>container("kaniko") {
              sh "kaniko -f `pwd`/Dockerfile -c `pwd` --destination=${ORIGIN_REPO}/${REPO}:${IMAGE_TAG} "
          }
</code></pre>

magnificence
<p>From the <a href="https://github.com/GoogleContainerTools/kaniko/blob/master/README.md#debug-image" rel="noreferrer">Kaniko</a> documentation:</p>

<p>"The kaniko executor image is based off of scratch and doesn't contain a shell. We provide gcr.io/kaniko-project/executor:debug, a debug image which consists of the kaniko executor image along with a busybox shell to enter.</p>

<p>You can launch the debug image with a shell entrypoint:</p>

<p><code>docker run -it --entrypoint=/busybox/sh gcr.io/kaniko-project/executor:debug"</code></p>
