<p>I was trying to get into kubernetes-dashboard Pod, but I keep getting this error:</p>
<pre><code>C:\Users\USER&gt;kubectl exec -n kubernetes-dashboard  kubernetes-dashboard-66c887f759-bljtc -it -- sh
OCI runtime exec failed: exec failed: unable to start container process: exec: &quot;sh&quot;: executable file not found in $PATH: unknown
command terminated with exit code 126
</code></pre>
<p>The Pod is running normally and I can access the Kubernetes UI via the browser. But I was getting some issues getting it running before, and I wanted to get inside the pod to run some commands, but I always get the same error mentioned above.</p>
<p>When I try the same command with a pod running nginx for example, it works:</p>
<pre><code>C:\Users\USER&gt;kubectl exec my-nginx -it -- sh
/ # ls
bin                   home                  proc                  sys
dev                   lib                   root                  tmp
docker-entrypoint.d   media                 run                   usr
docker-entrypoint.sh  mnt                   sbin                  var
etc                   opt                   srv
/ # exit
</code></pre>
<p>Any explanation, please?</p>

Aicha AIT OUMGHAR
<p>Prefix the command to run with <code>/bin</code> so your updated command will look like:</p>
<pre><code>kubectl exec -n kubernetes-dashboard  &lt;POD_NAME&gt; -it -- /bin/sh
</code></pre>
<p>The reason you're getting that error is because Git in Windows slightly modifies the MSYS that changes command args. Generally using the command <code>/bin/sh</code> or <code>/bash/bash</code> works universally.</p>
