-
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
Docker Not Detected #553
Comments
i get "Docker Not Detected" when i did not |
There should be a log file located at
|
|
this socket file is exists when docker runs $ ls /var/run/docker.sock -la
ls: cannot access '/var/run/docker.sock': No such file or directory
$ sudo systemctl start docker
$ ls /var/run/docker.sock -la
srw-rw---- 1 root docker 0 May 4 10:36 /var/run/docker.sock |
This may be a permissions issue. Are you able to run Also see the linux post-install steps |
Yes, but i have to start it with sudo (i can also systemctl enable it but i dont want it to start on boot) |
Can you temporary test running Polar as sudo just to confirm that it's a permissions issue? |
electron doesnt run as root... my polar just works normally if i |
Sadly, my Ubuntu VM won't boot up so I can't troubleshoot your scenario in my own environment. I could be wrong, but I suspect the root cause is related to docker permissions and not something that can be solved by a change in Polar. I'll leave this issue open in case others run into the same problem or would like to suggest potential solutions. |
I would suggest you first check if docker is installed (check if /usr/bin/docker exists), then check if it is running. what now says 'docker not found' actually is 'no running docker found' |
Same issue here, on ubuntu 20.04 and docker desktop. EDIT: i've reinstalled docker normally (without the docker desktop install) and did the post-installation steps and now it seems to be working fine without root. |
@riccardobl Thanks for the update and the workaround. @antonilol would you mind trying to reinstall docker to see if this works for you as well? |
Ah right. you were running into a slightly different issue. I haven't had a chance to get a Ubuntu VM setup to investigate further. |
@antonilol Just had a similar issue while setting up. A fix that worked for me For Docker:
For Docker Compose use this guide: https://www.smarthomebeginner.com/install-docker-on-ubuntu-22-04/ Move to the install docker-compose part (newer tutorials install docker compose in .docker/cli-plugins/ vs installing it in /usr/local/bin/ ) and i dont think polar checks for the presense of docker compose in .docker/cli-plugins yet ) @jamaljsr then restart your ubuntu os and try polar again it should work hopefully. |
The standalone They claim it's a drop-in replacement, however I still notice some small differences, such as container names delimited by EDIT: this delimiter issue is actually mentioned, and there's a |
Here's an easy workaround that I just tested w/Polar:
|
Adding this here instead of making a new issue, running Polar on Mac for the first time and it can't detect Docker Desktop. The above worked for my ubuntu setup, but any way to fix detect docker desktop on Mac? Most recent polar release, recommended docker desktop version from the "Download Docker Desktop" button in polar. |
@Kodylow I've had a few reports of this issue. I haven't been able to figure out why it happens on some Macs and not others, but there are a couple workarounds. What I observed is that this happens when opening Polar from the Spotlight search bar. For some reason, the Try these other methods of opening Polar to see if they work:
I also created #609 to provide a more permanent solution but It won't be available until the next release, unless you're interested in building from source and testing the PR. |
Interesting. I had not realized that Docker changed this path. Oddly, mine is still in Thanks for this insight. It's very helpful 👌 |
Keep in mind that standalone https://docs.docker.com/compose/cli-command-compatibility/ It appears the standalone binary is still being released, but ideally new development should support There's also a translator app called compose-switch that seems targeted at downstream package maintainers, but it may also be of interest to end users. Edit: The more I think about it, location of |
Yeah, I think the long term solution is just to remove the dependency on |
[ignore me] I had |
This solution worked for me! I have a new computer running Ubuntu 22.04 and so did a fresh install of Docker to get Polar up and running. The Docker site instructed me to install Docker desktop for Linux which I did. However when running the Polar app image (polar-linux-x86_64-v1.4.0.AppImage) it was at first unable to detect Docker or Docker Compose. After adding my user to the Docker group the Polar app image is able to detect Docker 20.10.21, but was still unable to detect Docker Compose. I was able to confirm that both Docker and Docker compose were running on my machine, and Docker was running as a systemd service, but the error persisted until I tried the above. It does seem that for me this issue was caused by not installing Docker Compose separately but instead installing it as a part of Docker desktop. Thanks for the fix. |
If you use a fresh Docker Desktop on Linux and are running into this, it could be because the Docker desktop application changes the context and doesn't use /var/run/docker.sock by default. You can check the context, e.g. Probably needs some docker context config/detection option added to polar or perhaps allow manual override of docker sock location in case of errors detecting. |
agreed i was having the same issue but for me (running arch linux) after 'docker context ls' i just ran 'docker context use "default" ' and polar was able to detect docker after, hopefully this will help someone else. |
ok i'm an idiot lol disregard the above. my resolution was exactly this: #553 (comment) |
I encountered the same "Docker not detected" error due to permissions after upgrading polar. The docker post-installation instructions to create a
|
I think i have the solution. ` |
And i forgot you have to reboot the system |
"Docker Not Detected" but I have it and running ubuntu 20 installation, nevertheless detect docker-compose, please help!
The text was updated successfully, but these errors were encountered: