-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set DOCKER_HOST on 4.13.0 without /var/run/docker.sock #6529
Comments
Thanks for reporting! We're trying to make Docker Desktop more userspace-friendly (e.g., fewer root privileges). As part of that, we're migrating the sockets to user-owned directories rather than root-owned directories (like /var/run). Everything should work correctly if you There's supposed to be some shim code that fixes this automatically, let me check in with some people and get back to you. |
Hi, thanks for the reply! If I do Could the new user-owned directory for the socket be added to the docs? |
Can you post a diagnostic id and the output of I think it's currently at |
Setting
|
Our current plan is to roll this change back for now and figure out a more orderly upgrade path with docs for client library authors. |
Here is the workaround for OSX:
|
I'd like to add that many thirdparty utilities, particularly IntelliJ and PhpStorm, expect there to be a |
@hopeseekr I needed to force |
This wasted 4 hours of my life thinking it was a configuration problem that I had.
I appreciate the intent of this change, yet the intent should have been captured in the release notes. Also, with such changes, you should have a workaround available BEFORE release to ensure people can continue as necessary. Still though, updated the DOCKER_HOST doesn't work since a lot of 3rd parties rely on the location of the sock descriptor since it has been there for a decade. To change it all of a sudden is really a really bold and strange call. Hopefully, people find this (though I didn't) and don't waste hours like I did. |
updated postDesktop 4.13.0 (89412) no longer hangs with "workaround", however I am not able to connect to Docker daemon . See steps taken below. Yes, previous release 4.12 does work on this setup. My env:
Steps taken (zsh)
Output after restart and login:
~ |
I found an issue when tailing file DockerAppStderr.txt in
I interpreted this to mean that the default Docker subnet (/28) subnet is too small. Steps taken (in addition to #6529 (comment))
And it's working! |
Recent Docker Desktop (4.13.0) introduced a breaking (seriously) change for new users where /var/run/docker.sock is removed. They will likely restore it as result of backlash docker/for-mac#6529 (comment) but this change adds check and workaround that such users might apply. Related to: apache#27217
Recent Docker Desktop (4.13.0) introduced a breaking (seriously) change for new users where /var/run/docker.sock is removed. They will likely restore it as result of backlash docker/for-mac#6529 (comment) but this change adds check and workaround that such users might apply. Related to: #27217
Closing this issue as a fix has been pushed with the new release of Docker Desktop |
Amen is all I can say.... and when I read the "4 hours" yeap same here!! Almost |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
If someone find this in 2023 Hi, Docker-Desktop for Linux User here. this was the fix for me but literally took me hours to fiddle out. /usr/lib/systemd/user/docker-desktop.service
|
Recent Docker Desktop (4.13.0) introduced a breaking (seriously) change for new users where /var/run/docker.sock is removed. They will likely restore it as result of backlash docker/for-mac#6529 (comment) but this change adds check and workaround that such users might apply. Related to: apache/airflow#27217 GitOrigin-RevId: 3e71c757affb5ce9373b3dea73ae699980165a4a
This has returned in Docker 4.17.0; please provide clear documentation about the environment variable. Using |
Recent Docker Desktop (4.13.0) introduced a breaking (seriously) change for new users where /var/run/docker.sock is removed. They will likely restore it as result of backlash docker/for-mac#6529 (comment) but this change adds check and workaround that such users might apply. Related to: apache/airflow#27217 GitOrigin-RevId: 3e71c757affb5ce9373b3dea73ae699980165a4a
I'm also having this issue on a new laptop with Docker Desktop 4.18.0 (104112). My workaround was to create a symlink |
Issue is still occurring, @fharper solution worked for me. |
I literally found another working solution to this and this was by simply setting the DOCKER_HOST variable like so. export DOCKER_HOST="unix://$HOME/.docker/desktop/docker.sock" of for your case probably |
@niklasschaeffer: nice, but it assume that apps connecting to the socket don't use default path, but use this environment variable no? |
@fharper As long as they respect the DOCKER_HOST Enviroment variable i think you won't have any problems at all |
@niklasschaeffer yeah, that's why I prefer to symlink. I would assume most people use the default path as it shouldn't NOT be created by Docker, instead of checking an environment variable that needs to be set by the user. Also, in my case, the app didn't check it :) |
This solves the issue without the need for root access export DOCKER_HOST=unix://"$HOME/.docker/run/docker.sock" |
I'm having this issue using docker desktop version 4.22.1. Running |
Here's a good doc that explains sockets on Docker Desktop on Mac, and why we're moving away from the root-owned |
Expected behavior
DOCKER_HOST
working in Docker Desktop 4.13.0Actual behavior
Docker Desktop for Mac removed
/var/run/docker.sock
per 4.13.0 Release Notes: https://docs.docker.com/desktop/release-notes/#docker-desktop-4130 "By default Docker will not create the /var/run/docker.sock symlink on the host and use the docker-desktop CLI context instead."I use Docker Desktop along with other tools that require
DOCKER_HOST
. The docs say to set this to the/var/run/docker.sock
https://docs.docker.com/desktop/faqs/general/#how-do-i-connect-to-the-remote-docker-engine-apiIs there a different setting for
DOCKER_HOST
that will work in 4.13.0, or a preference to create the socket?I poked around a bit but did not find anything in the UI. Thanks in advance!
Information
Steps to reproduce the behavior
DOCKER_HOST
not workingThe text was updated successfully, but these errors were encountered: