<p>This is my first time using google cloud platform and feeling a bit lost. </p>

<p>I pushed my custom ubuntu image (created from a Dockerfile) to GCE and then created a container cluster from the console.</p>

<p>What I got is: a container cluster and a vm instances cluster. </p>

<p>I can ssh into these instances and see them blank, I mean it does not have what I built from the Dockerfile on my system. I copied some source code into it.
I did docker images in the whatever instance I sshed but could not see the image I pushed.</p>

<p>I am totally lost now. My basic question is
How do I see contents of my container or how do I ssh into it.</p>

<p>I tried following some tutorials but no success.
For ex: I tried this command <strong>gcloud compute instances list</strong> and got some big string (<em>gke-cluster-1-53f024ac-node-s5zc</em>) as instance name. When I tried this command <strong>gcloud compute ssh gke-cluster-1-53f024ac-node-s5zc</strong> I got error that instance not found.</p>

<p>Please help.</p>

<p>Thanks</p>

<p>To log into a container, use the following command:</p>

<pre><code>kubectl exec -it POD bash
</code></pre>

<p>Replace <code>POD</code> with the name of the pod in which the container is running. This works for pods with a single container. For pods with multiple containers, use the <code>-c</code> option to specify the container.</p>
