<p>I started learning about Kubernetes and I installed minikube and kubectl on Windows 7.</p>
<p>After that I created a pod with command:</p>
<pre><code>kubectl run firstpod --image=nginx
</code></pre>
<p>And everything is fine:</p>
<p>[![enter image description here][1]][1]</p>
<p>Now I want to go inside the pod with this command: <code>kubectl exec -it firstpod -- /bin/bash</code> but it's not working and I have this error:</p>
<pre><code>OCI runtime exec failed: exec failed: container_linux.go:380: starting container
 process caused: exec: &quot;C:/Program Files/Git/usr/bin/bash.exe&quot;: stat C:/Program
Files/Git/usr/bin/bash.exe: no such file or directory: unknown
command terminated with exit code 126
</code></pre>
<p>How can I resolve this problem?</p>
<p>And another question is about this <code>firstpod</code> pod. With this command <code>kubectl describe pod firstpod</code> I can see information about the pod:</p>
<pre><code>Name:         firstpod
Namespace:    default
Priority:     0
Node:         minikube/192.168.99.100
Start Time:   Mon, 08 Nov 2021 16:39:07 +0200
Labels:       run=firstpod
Annotations:  &lt;none&gt;
Status:       Running
IP:           172.17.0.3
IPs:
  IP:  172.17.0.3
Containers:
  firstpod:
    Container ID:   docker://59f89dad2ddd6b93ac4aceb2cc0c9082f4ca42620962e4e692e3d6bcb47d4a9e
    Image:          nginx
    Image ID:       docker-pullable://nginx@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36
    Port:           &lt;none&gt;
    Host Port:      &lt;none&gt;
    State:          Running
      Started:      Mon, 08 Nov 2021 16:39:14 +0200
    Ready:          True
    Restart Count:  0
    Environment:    &lt;none&gt;
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-9b8mx (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  kube-api-access-9b8mx:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       &lt;nil&gt;
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              &lt;none&gt;
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  32m   default-scheduler  Successfully assigned default/firstpod to minikube
  Normal  Pulling    32m   kubelet            Pulling image &quot;nginx&quot;
  Normal  Pulled     32m   kubelet            Successfully pulled image &quot;nginx&quot; in 3.677130128s
  Normal  Created    31m   kubelet            Created container firstpod
  Normal  Started    31m   kubelet            Started container firstpod
</code></pre>
<p>So I can see it is a docker container id and it is started, also there is the image, but if I do <code>docker images</code> or <code>docker ps</code> there is nothing. Where are these images and container? Thank you!
[1]: <a href="https://i.stack.imgur.com/xAcMP.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/xAcMP.jpg</a></p>

<p>One error for certain is gitbash adding Windows the path. You can disable that with a double slash:</p>
<pre><code>kubectl exec -it firstpod -- //bin/bash
</code></pre>
<p>This command will only work if you have bash in the image. If you don't, you'll need to pick a different command to run, e.g. <code>/bin/sh</code>. Some images are distroless or based on scratch to explicitly not include things like shells, which will prevent you from running commands like this (intentionally, for security).</p>
