<p>I created Kubernetes cluster with kops (on AWS), and i want to access to one of my nodes as a root.According to <a href="https://stackoverflow.com/questions/42793382/exec-commands-on-kubernetes-pods-with-root-access">this post</a>, it's possible only with Docker command.
When i type <code>docker image ls</code> i'm getting nothing. When i was using minikube i solved this issue with <code>minikube docker-env</code> and from output i just copied last line into new CMD line <code>@FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i</code>
(I'm using Widnows 10) and using above procedure, after typing <code>docker image ls</code> or <code>docker image ps</code> i was able to see all minikube pods. Is there any way to do the same for pods created with kops ?</p>

<p>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)</p>

overflowed
<p>It's a bit unclear what you're trying to do. So I'm going to give some general info here based on this scenario : <em>You've created a K8S cluster on AWS using Kops</em></p>

<h2>I want to access one of my AWS node as root</h2>

<p>This has nothing to do with <strong>kops</strong> nor it has with <strong>Docker</strong>. This is basic AWS management. You need to check on your AWS console management to get all the info to connect to your node.</p>

<h2>I want to see all the docker image from my windows laptop</h2>

<p>Again, this has nothing to do with <strong>kops</strong>. Kops is a Kubernetes distribution. In Kubernetes, the smallest units of computing that can be managed is the <strong>pod</strong>. You cannot manage <em>directly</em> docker containers or images with kubernetes.<br>
So if you want to see your docker images, you'll need to somehow connect to your AWS node and then execute </p>

<pre class="lang-sh prettyprint-override"><code>docker image ls
</code></pre>

<p>In fact, that's what you're doing with your minikube example. You're just executing the docker command on the VM managed by minikube.  </p>

<p>More info on what's a pod <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod/" rel="nofollow noreferrer">here</a></p>

<h2>I want to see all the pods created with kops</h2>

<p>Well, assuming that you've succesfully configured your system to access AWS with kops (more info on that <a href="https://github.com/kubernetes/kops/blob/master/docs/aws.md" rel="nofollow noreferrer">here</a>), then you'll just have to directly execute any <code>kubectl</code> command. For example, to list all the pods located in the <code>kube-system</code> namespace :  </p>

<pre class="lang-sh prettyprint-override"><code>kubectl -n kube-system get po
</code></pre>

<p>Hope this helps !</p>
