<p>I have been trying to run tomcat container on port 5000 on cluster using kubernetes. But when i am using kubectl create -f tmocat_pod.yaml , it creates pod but docker ps does not give any output. Why is it so?</p>

<p>Ideally, when it is running a pod, it means it is running a container inside that pod and that container is defined in yaml file.
Why is that docker ps does not show any containers running?
I am following the below URLs:</p>

<ul>
<li><a href="http://containertutorials.com/get_started_kubernetes/k8s_example.html" rel="noreferrer">http://containertutorials.com/get_started_kubernetes/k8s_example.html</a></li>
<li><a href="https://blog.jetstack.io/blog/k8s-getting-started-part2/" rel="noreferrer">https://blog.jetstack.io/blog/k8s-getting-started-part2/</a></li>
</ul>

<p>How can I get it running and see tomcat running on browser on port 5000.</p>

Abhishek Somani
<p>The docker containers should be running on the virtual machine. Since I only installed minikube on my local machine, I confirmed the following will bring what you want:</p>

<pre><code>minikub ssh
...
docker ps
</code></pre>

<p>Just try the kubernetes equivalent of <code>minikube ssh</code>.</p>
