<p>I have problem login into one container of a multi-container pod.
I get the container id from the <code>kubectl describe pod &lt;pod-name&gt;</code></p>

<pre><code>kubectl describe pod ipengine-net-benchmark-488656591-gjrpc -c &lt;container id&gt; 
</code></pre>

<p>When i try: </p>

<pre><code>kubectl exec -ti ipengine-net-benchmark-488656591-gjrpc -c 70761432854f /bin/bash
</code></pre>

<p>It says: Error from server: container 70761432854f is not valid for pod ipengine-net-benchmark-488656591-gjrpc</p>

<p>Ah once more detailed reading the man page of kubectl exec :</p>
<p>Flags:</p>
<pre><code>  -c, --container=&quot;&quot;: Container name. If omitted, the first container in the pod will be chosen
  -p, --pod=&quot;&quot;: Pod name
  -i, --stdin[=false]: Pass stdin to the container
  -t, --tty[=false]: Stdin is a TTY
</code></pre>
<p>So i just used the container name from my manifest.yaml and it worked like charm.</p>
<p><code>Name of the container: ipengine-net-benchmark-iperf-server</code></p>
<pre><code>kubectl exec -ti ipengine-net-benchmark-488656591-gjrpc -c ipengine-net-benchmark-iperf-server /bin/bash
</code></pre>
