<p>My kubectl cp isnt working due to tar not being in my bin folder of my container. I can't seem to find how to get it installed.</p>
<p>I get an error when trying:</p>
<pre><code>kubectl cp /tmp/foo_dir &lt;some-pod&gt;:/tmp/bar_dir
</code></pre>
<p><strong>Error:</strong></p>
<blockquote>
<p>rpc error: code = 2 desc = oci runtime error: exec failed:
container_linux.go:235: starting container process caused &quot;exec:
&quot;tar&quot;: executable file not found in $PATH&quot;</p>
</blockquote>

<p>It looks like there is no Tar into your Docker</p>
<p>I would suggest installing the Tar first at the above <strong>Dockerfile</strong> level commands</p>
<p>You can add the Tar into Docker using</p>
<p><strong>Docker image</strong> : <code>RUN yum install -y tar</code></p>
