title: How do I run curl command from within a Kubernetes pod
body: <p>I have the following questions:</p>
  <ol>
  <li><p>I am logged into a Kubernetes pod using the following command:</p>
  <pre><code> ./cluster/kubectl.sh exec my-nginx-0onux -c my-nginx -it bash
  </code></pre>
  <p>The 'ip addr show' command shows its assigned the ip of the pod. Since pod is a logical concept, I am assuming I am logged into a docker container and not a pod, In which case, the pod IP is same as docker container IP. Is that understanding correct?</p>
  </li>
  <li><p>from a Kubernetes node, I do <code>sudo docker ps</code> and then do the following:-</p>
  <pre><code> sudo docker exec  71721cb14283 -it '/bin/bash'
  </code></pre>
  <p>This doesn't work. Does someone know what I am doing wrong?</p>
  </li>
  <li><p>I want to access the nginx service I created, from within the pod using curl. How can I install curl within this pod or container to access the service from inside. I want to do this to understand the network connectivity.</p>
  </li>
  </ol>