<p>I have a pod with nginx image, but it also has the command &quot;nginx&quot;.</p>
<p>apiVersion: v1
kind: Pod
metadata:
name: nx
spec:
containers:</p>
<ul>
<li>name: nginx
image: nginx
command: [&quot;nginx&quot;] #what does this do? it's not bin/sh -c
args: [&quot;-g&quot;, &quot;daemon off;&quot;, &quot;-q&quot;]
ports:
<ul>
<li>containerPort: 80</li>
</ul>
</li>
</ul>
<p>-g daemon off is means 'nginx runs in quiet mode.</p>
<p>But what is 'nginx' cmd actually? Does it mean it says enter the actual web-server nginx?</p>

ERJAN
<ul>
<li><code>nginx</code> : Yes , this command starts nginx server.<a href="https://www.nginx.com/resources/wiki/start/topics/tutorials/commandline/" rel="nofollow noreferrer">Nginx command line options</a></li>
<li><code>daemon off </code> option for <code>nginx</code> command runs nginx in foreground instead of running it as a system daemon (background process).<a href="https://stackoverflow.com/questions/25970711/what-is-the-difference-between-nginx-daemon-on-off-option#:%7E:text=For%20Docker%20containers%20(or%20for,container)%20has%20only%20one%20service.">difference between daemon off and daemon on</a></li>
</ul>
