<p>I'm trying to get the IP address of the "docker-for-desktop" node.</p>

<p>I'm switching from minikube to docker-for-desktop because it doesn't require VirtualBox. </p>

<p><a href="https://i.stack.imgur.com/1UcAx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1UcAx.png" alt="Screenshot of docker-for-desktop"></a></p>

<p>I created a service that exposes a NodePort. When I use minikube context, I'm able to reach the service via minikube's IP address. When I switch to docker-for-desktop context, I'm not able to reach the service because I don't know its IP address.</p>

<p>With minikube, I was able to do:</p>

<pre><code>$ minikube ip
</code></pre>

<p>or even:</p>

<pre><code>$ minikube service list
</code></pre>

<p>I'm not sure how to do that with docker-for-desktop.</p>

<p>I would expect to have a command that gives a docker-for-desktop IP address.</p>

<p>Minikube is creating a virtual machine that has its own IP, but when using Docker for Mac, you use your own laptop, so where you were using the minikube ip you can now just use <code>localhost</code>. It's just simpler.</p>
