how to differentiate docker container and kubernetes pods running in the same host

5/17/2021

I was handed a kubernetes cluster to manage. But in the same node, I can see running docker containers (via docker ps) that I could not able to find/relate in the pods/deployments (via kubectl get pods/deployments).

I have tried kubectl describe and docker inspect but could not pick out any differentiating parameters.

How to differentiate which is which?

-- himekami
docker
kubernetes

1 Answer

5/17/2021

There will be many. At a minimum you'll see all the pod sandbox pause containers which are normally not visible. Plus possibly anything you run directly such as the control plane if not using static pods.

-- coderanger
Source: StackOverflow