<p>I am trying to <code>exec</code> into POD running over K8S using below command,</p>
<pre><code>kubectl exec -it entry-log -n my-ns  -- /bin/bash
</code></pre>
<p>I am able to inside POD file system and wanted to edit the file <code>log.conf</code> using either <code>nano</code> or <code>vim</code> commands, but nothing is available here? Also I am seeing it's prompt as <code>bash-4.2</code>.</p>
<pre><code>bash-4.2$ cd code/
bash-4.2$ nano log.conf
bash: nano: command not found
</code></pre>
<p>How can I edit the said file, please suggest. Thanks!</p>

user584018
<p>What is the image of your container?</p>
<p>If your image is <code>ubuntu:focal</code> or <code>ubuntu:jammy</code>, they don't have the commands like <code>nano</code> or <code>vim</code> by default. You should install these either to your Dockerfile for your image or to your container using:</p>
<pre class="lang-bash prettyprint-override"><code>apt-get update &amp;&amp; apt-get install nano -y
</code></pre>
