<p>I recently changed the docker daemon from my local Docker Desktop to local minikube following these <a href="https://minikube.sigs.k8s.io/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env" rel="nofollow noreferrer">instructions</a>.</p>
<pre><code>@FOR /f &quot;tokens=*&quot; %i IN ('minikube -p minikube docker-env --shell cmd') DO @%i
</code></pre>
<p>After running some tests, I want to change it back to my previous setup. I already tried to change some environment variable but it did not succeeded.</p>
<pre><code>SET DOCKER_HOST=tcp://127.0.0.1:2375
</code></pre>

<p>Run the below command to get the list of Docker Hosts..</p>
<pre><code>docker context ls
</code></pre>
<p>output will be something like below</p>
<pre><code>NAME            DESCRIPTION                               DOCKER ENDPOINT                                   KUBERNETES ENDPOINT   ORCHESTRATOR
default *       Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                                             swarm
desktop-linux                                             unix:///home/sc2302/.docker/desktop/docker.sock                         
rootless        Rootless mode                             unix:///run/user/1001/docker.sock 
</code></pre>
<p>Now, from the output's, select the context you want to use.. ex: to switch to default context</p>
<pre><code>docker context use default
</code></pre>
