<p>There are cases when you want to restart a specific container instead of deleting the pod and letting Kubernetes recreate it.</p>

<p>i am having one pod running apache container. i did editing in apache config file. for SSL certificate virtual host port changes etc.</p>

<p>now i want to restart apache2 service but without recreating pod.</p>

<p>i tried inside pod with </p>

<pre><code>service apache2 restart
</code></pre>

<p>but it also recreate pod and configuration also change again.</p>

Harsh Manvar
<p>check <a href="https://stackoverflow.com/questions/37523338/how-to-restart-apache2-without-crashing-docker-container">this</a></p>

<p>You can also create a new dockerfile for override the apache dockerfile and change de CMD line, but it's more complicated</p>
