how to find location of a docker image in pod in GCP?

1/1/2020

I'm using Kubernetes on Google Cloud Platform; I installed the Kafka image in a pod, but when I try to make communication between producer and consumer with Kafkacat nothing is working.

I want to find the location kafka in pod.

this picture is the deployement of kafka broker

-- tarek taamali
docker
google-cloud-platform
kubernetes

1 Answer

1/1/2020

The containers running inside a pod are actually run by the docker daemon (assuming docker is the chosen container runtime for this Kubernetes deployment) of the host machine.

So in case of GCP the host machine will be the worker VM where the pod is scheduled by Kubernetes.

You can get to know which worker VM by looking at the node by running the command:

kubectl get pod pod name -o wide

Hence the image will be stored in the file system of the host machine. The exact path depends on the OS distribution of the host machine.

This is discussed here Where are Docker images stored on the host machine?

-- Arghya Sadhu
Source: StackOverflow