Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
JetBrains IDE 在配置 Docker 连接的时候提示这个错误,找了一下没有 /var/run/docker.sock
谷歌了一波发现原来是 Docker Desktop 在 4.13.0 版本有修改
By default Docker will not create the /var/run/docker.sock symlink on the host and use the docker-desktop CLI context instead.
那么怎么连接呢?
docker context ls
找到 DOCKER ENDPOINT 中 Mac Users 的地址填写到 TCP socket 即可
参考
- https://stackoverflow.com/questions/74173489/docker-socket-is-not-found-while-using-intellij-idea-and-docker-desktop-on-macos
- https://docs.docker.com/desktop/release-notes/#4130
- https://github.com/docker/for-mac/issues/6529