I created Kubernetes cluster with kops (on AWS), and i want to access to one of my nodes as a root.According to this post, it's possible only with Docker command.
When i type docker image ls
i'm getting nothing. When i was using minikube i solved this issue with minikube docker-env
and from output i just copied last line into new CMD line @FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
(I'm using Widnows 10) and using above procedure, after typing docker image ls
or docker image ps
i was able to see all minikube pods. Is there any way to do the same for pods created with kops ?
I'm able to do it connecting to Kubernetes node, install docker on it, and then i can connect to pod specifying -u root switch, but i wonder is it possible to do the same from host machine (Windows 10 in my case)
That is not possible. A pod is an abstraction created and managed by kubernetes. The docker daemon has no idea to what is a pod. You can only see the containers using docker command. But then again, you wont be able to tell which container is associated to which pod.
Answered by @Marc ABOUCHACRA