<p>I used to run wiremock image using flowing <em><strong>docker run</strong></em> cmd :</p>
<pre><code>docker run -it -p 8787:8787 rodolpheche/wiremock --port 8787 --verbose
</code></pre>
<p>Now I am trying to run it in Kubernetes using <em><strong>kubectl run</strong></em> cmd, the following one is running successfully</p>
<pre><code>kubectl run wiremock --image=rodolpheche/wiremock
</code></pre>
<p>but I am not able to run it with custom cmd &quot;--port 8787 --verbose&quot;, I also tried the below option but I couldn't run <a href="https://hub.docker.com/r/rodolpheche/wiremock" rel="nofollow noreferrer">wiremock</a> container with these specific options &quot;--port 8787 --verbose&quot;</p>
<pre><code># Start container using a different command and custom arguments.
kubectl run wiremock --image=rodolpheche/wiremock --command -- &lt;cmd&gt; &lt;arg1&gt; ... &lt;argN&gt;
</code></pre>
<p>is there any way to run it in Kubernetes on port 8787 with the verbose option?</p>

DALDOUL
<pre><code>kubectl run wmock --image rodolpheche/wiremock --port 8787 -- --port 8787 --verbose
</code></pre>
<p>should do the trick, this will create a single pod with wiremock running on port 8787 with the verbose flag:</p>
<pre><code>k exec -it wmock -- /bin/bash
root@wmock:/home/wiremock#
...
root@wmock:/home/wiremock# ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.4  1.9 3370684 78964 ?       Ssl  18:37   0:02 java -cp /var/wiremock/lib/*:/var/wiremock/extensions/* com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --port 8787 --verbose
</code></pre>
