<p>I'm extremely new to Kubernetes (besides it's not my field) but I got required to be able to execute this practice.</p>

<p>Question is that I need a Handbrake Converter in a containerized pod with a Persistent Volume mounted on a GKE cluster:</p>

<ul>
<li>3 nodes.</li>
<li>node version 1.8.1-gke.1</li>
<li>node image Ubuntu</li>
</ul>

<p>Everything is fine until this point but now I'm not able to upload a folder to that PV from my local machine.</p>

<p>What I have tried is a ssh connection to the node and then a <code>sudo docker exec -ti containerId bash</code> but I just got <code>rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"bash\\\": executable file not found in $PATH\"\n"</code>.</p>

<p>Thanks in advance.</p>

<p>To transfer local files to a kubernetes pod, use <code>kubectl cp</code>:</p>
<pre><code>kubectl cp /root/my-local-file my-pod:/root/remote-filename
</code></pre>
<p>or</p>
<pre><code>kubectl cp /root/my-local-file my-namepace/my-pod:/root/remote-filename -c my-container
</code></pre>
<p>The namespace can be omitted (and you'll get the default), and the container can be omitted (you'll get the first in the pod).</p>
<p>For SSH'ing you need to go through kubectl as well:</p>
<pre><code>kubectl exec -it &lt;podname&gt; -- /bin/sh
</code></pre>
