title: Kubernetes pods versus Docker container in Google's codelabs tutorial
body: <p>This question pertains to the Kubernetes tutorial on Google's CodeLabs found here: <a href="https://codelabs.developers.google.com/codelabs/cloud-compute-kubernetes/index.html?index=..%2F..%2Fgcp-next#15" rel="nofollow noreferrer">https://codelabs.developers.google.com/codelabs/cloud-compute-kubernetes/index.html?index=..%2F..%2Fgcp-next#15</a></p>
  <p>I'm new to both Docker and Kubernetes and am confused over their use of the term &quot;pods&quot; which seems to contradict itself.</p>
  <p>From that tutorial:</p>
  <blockquote>
  <p>A Kubernetes pod is a group of containers, tied together for the purposes of administration and networking. It can contain one or more containers. All containers within a single pod will share the same networking interface, IP address, disk, etc. All containers within the same pod instance will live and die together. It's especially useful when you have, for example, a container that runs the application, and another container that periodically polls logs/metrics from the application container.</p>
  </blockquote>
  <p>That is in-line with my understanding of how Kubernetes pods relate to containers, however they then go on to say:</p>
  <blockquote>
  <p>Optional interlude: Look at your pod running in a Docker container on the VM</p>
  <p>If you ssh to that machine (find the node the pod is running on by using kubectl describe pod  | grep Node), you can then ssh into the machine with gcloud compute ssh  . Finally, run sudo docker ps to see the actual pod</p>
  </blockquote>
  <p>My problems with the above quote:</p>
  <ol>
  <li>. &quot;Look at your pod running in a Docker container&quot; appears to be
  backwards. Shouldn't it say &quot;Look at your Docker container running
  on the VM&quot;?</li>
  <li>&quot;...run sudo docker ps to see the actual <strong>pod</strong>&quot; doesn't make sense, since &quot;docker ps&quot; lists docker containers, not pods.</li>
  </ol>
  <p>So am I way off base here or is the tutorial incorrect?</p>