-
Notifications
You must be signed in to change notification settings - Fork 148
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
Bug: DOCKER_HOST environment variable not respected #482
Comments
Yes, I would have made this same guess as you, but after looking at the |
I am running Arch. I'm happy to do some more debugging as well, I'll try to see if I can track it down to electron. |
Awesome! That would be very helpful. Thanks 🥇 |
I poked around about and believe this is the root of the issue: electron/electron#3306 I verified that the main electron process has the correct DOCKER_HOST env var. And it appears the the "zygot" subprocess don't when I inspected their EDIT: As a workaround I was able to hardcode the |
Thank for looking into this. 👍 I haven't confirmed myself but that electron issue seems like it could be the issue. I'll work on a fix when time permits. |
This was fixed in #695 |
Describe the bug
Polar fails to connect to Docker on startup and shows the "Docker Not Detected" message even though the system should be compatible.
To Reproduce
Run the docker daemon on a different host than the standard
/var/run/docker.sock
.Expected behavior
I believe that the
DOCKER_HOST
environment variable is the standard way to direct programs (e.g. Docker Compose) to the correct socket to use to contact the local docker daemon. Assuming that is set correctly, Polar should use it.Desktop (please complete the following information):
Additional context
I am using a non-standard docker install that puts the
DOCKER_HOST
on a different socket than usual, but I don't think this should effect Polar.My
DOCKER_HOST
is set tounix:///run/user/1000/podman/podman.sock
, but I see in the Polar logs it still tries to connect to/var/run/docker.sock
:My only guess is that this has something to do with the
dockerode
dependency? For what its worth, it appears that once Polar is started, it respectsDOCKER_HOST
. I believe this is due to it delegating to Compose.The text was updated successfully, but these errors were encountered: