<p>I am getting <code>unknown image flag</code> when creating a deployment using <code>minikube</code> on <code>windows 10</code> <code>cmd</code>. Why?</p>
<pre><code>C:\WINDOWS\system32&gt;minikube kubectl create deployment nginxdepl --image=nginx
Error: unknown flag: --image
See 'minikube kubectl --help' for usage.

C:\WINDOWS\system32&gt;
</code></pre>

Manu Chadha
<p>When using <a href="https://minikube.sigs.k8s.io/docs/handbook/kubectl/" rel="noreferrer">kubectl bundled with minikube</a> the command is little different.</p>
<p>From the <a href="https://minikube.sigs.k8s.io/docs/handbook/kubectl/" rel="noreferrer">documentation</a>, your command should be:</p>
<pre><code>minikube kubectl -- create deployment nginxdepl --image=nginx
</code></pre>
<p>The difference is the <code>--</code> right after <code>kubectl</code></p>
