<p>I am tryng to create a pod using kubectl run by creating an yaml file, where first command is creating container but showing state as error and second one is creating with out any issue. what is the difference between these commands?</p>

<pre><code>master $  kubectl run --restart=Never --image=busybox static-busybox --command -- sleep 1000 --dry-run -o yaml //Error container

master $  kubectl run --restart=Never --image=busybox static-busybox --dry-run -o yaml --command -- sleep 1000 //working command
</code></pre>

DevOpsGeek
<p>In the first one parameters <code>--dry-run -o yaml</code> are applied to the command you run in the container (sleep), in the second one, they are applied to your kubectl execution</p>
