cannot connect to the Docker daemon at /var/run/docker.sock Mac Docker Desktop

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 即可

參考

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章