<p>I have 2 line code in Dockerfile like below:</p>

<pre><code>ENTRYPOINT ["/dockerstartup/dockerstartup.sh"]
CMD ["--wait"]
</code></pre>

<p>Below is my code converted in Kubernetes yaml:</p>

<pre><code>command: ["/dockerstartup/dockerstartup.sh"]
args: ["--wait"]
</code></pre>

<p>Is it correct?
Suggestion please.</p>

Nightt
<p>As per <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#define-a-command-and-arguments-when-you-create-a-pod" rel="nofollow noreferrer">Define a Command and Arguments for a Container</a> docs:</p>

<blockquote>
  <p>The command and arguments that you define in the configuration file
  override the default command and arguments provided by the container
  image.</p>
</blockquote>

<p><a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes" rel="nofollow noreferrer">This</a> table summarizes the field names used by Docker and Kubernetes:</p>

<pre><code>| Docker field name | K8s field name |
|------------------:|:--------------:|
|    ENTRYPOINT     |     command    |
|       CMD         |      args      |
</code></pre>

<p><strong>So, for your example you should use the following:</strong>  </p>

<p><strong>Docker:</strong></p>

<pre><code>ENTRYPOINT ["/dockerstartup/dockerstartup.sh"]
CMD ["--wait"]
</code></pre>

<p><strong>Kubernetes:</strong></p>

<pre><code>command: ["/dockerstartup/vnc_startup.sh"]
args: ["--wait"]
</code></pre>
