Docker context switching

less than 1 minute read

Sometimes it’s useful to run multiple Docker contexts/daemons, e.g. if you’re running Docker Desktop and Lima, or local Kubernetes clusters.

Switching to Lima was straightforward, but I found myself scratching around trying to find how to get back to the Docker Desktop config.

For when I forget next time:

# list the contexts so you pick the right one
docker context ls

# switch to Lima
docker context use lima 

# switch back to Docker Desktop
docker context use default