Sunday, April 28, 2024

Support docker container runtime in Kubernetes 1.24 · Issue #13545 · kubernetes/minikube $DOCKER_HOST

https://github.com/kubernetes/minikube/issues/13545


For some reason, after updating the macOS docker version, it doesn't create the /var/run/docker.sock file anymore. Creating a symlink is a hacky way and not recommended.

My solution is to set the $DOCKER_HOST environment variable:

export DOCKER_HOST=unix:///Users/<USER>/.docker/run/docker.sock  

or add it to .zshrc:

echo "export DOCKER_HOST=unix:///Users/<USER>/.docker/run/docker.sock" >> ~/.zshrc  

or add it in the IntelliJ run configuration.


No comments: