<p>I use kubernetes on docker for windows.<br>
And I want to use Kaniko but I could not build an image on local kubernetes.</p>

<p>Dockerfile</p>

<pre><code>FROM ubuntu:18.04
RUN apt update
RUN apt install -y ssh
</code></pre>

<p>kanikopod.yaml</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: kaniko
spec:
  containers:
    - image: gcr.io/kaniko-project/executor:latest
      args: 
      - --dockerfile=/mnt/Dockerfile 
      - --context= /mnt
      - --no-push
      name: kaniko
      command:
        - sleep
        - infinity
      volumeMounts:
        - mountPath: /mnt
          name: mount-volume

  restartPolicy: Never
  volumes:
    - name: mount-volume
      persistentVolumeClaim:
        claimName: kaniko-workspace
</code></pre>

<p>But ContainerCannotRun error occurred.</p>

<p>kubectl describe pods kaniko<br>
result is</p>

<pre><code>Name:               kaniko
Namespace:          default
Priority:           0
PriorityClassName:  &lt;none&gt;
Node:               docker-desktop/192.168.65.3
Start Time:         Mon, 06 May 2019 18:13:47 +0900
Labels:             &lt;none&gt;
Annotations:        kubectl.kubernetes.io/last-applied-configuration:
                      {"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"name":"kaniko","namespace":"default"},"spec":{"containers":[{"args":["--dock...
Status:             Pending
IP:
Containers:
  kaniko:
    Container ID:
    Image:         gcr.io/kaniko-project/executor:latest
    Image ID:
    Port:          &lt;none&gt;
    Host Port:     &lt;none&gt;
    Command:
      sleep
      infinity
    Args:
      --dockerfile=/mnt/Dockerfile
      --context= /mnt
      --no-push
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    &lt;none&gt;
    Mounts:
      /mnt from mount-volume (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-spjnr (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  mount-volume:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  kaniko-workspace
    ReadOnly:   false
  default-token-spjnr:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-spjnr
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  &lt;none&gt;
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  4s    default-scheduler  Successfully assigned default/kaniko to docker-desktop
</code></pre>

<p>kubectl logs kaniko<br>
But there was no output.</p>

<p>I think "--destination=" option is needed for kaniko, but I cannot find the information.<br>
What should I do?</p>

<p>Try to remove this lines:</p>

<pre><code>  command:
    - sleep
    - infinity
</code></pre>
