ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6.14k stars 282 forks source link

Docker Socket Proxy only works partially #2095

Open Celarye opened 3 months ago

Celarye commented 3 months ago

Environment

Docker

Version

0.15.3

Describe the problem

I use docker-socket-proxy for containers which need access to the Docker Engine API. I currently have no issue letting Homarr see my containers in the network. But for some reason I cannot get starting/stopping/restarting/removing to work.

When trying these actions I get the following errors: image and the logs show nothing either.

Here is the relevant section in my compose file:

docker-socket-proxy:
  container_name: docker-socket-proxy
  image: ghcr.io/tecnativa/docker-socket-proxy:latest
  networks: [ media-server ]
  ports:
    - 2375:2375
  environment:
    - POST=1
    - CONTAINERS=1
    - ALLOW_START=1
    - ALLOW_STOP=1
    - ALLOW_RESTARTS=1
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
  restart: unless-stopped

homarr:
  container_name: homarr
  image: ghcr.io/ajnart/homarr:latest
  networks: [ media-server ]
  ports:
    - 7575:7575
  environment:
    - DOCKER_HOST=tcp://docker-socket-proxy:2375
  volumes:
    - ./homarr/configs:/app/data/configs
    - ./homarr/public/imgs/blue_hour_4k.png:/app/public/imgs/blue_hour_4k.png
    - ./homarr/public/icons:/app/public/icons
    - ./homarr/data:/data
  restart: unless-stopped

Giving Homarr direct socket access does work making me to believe that docker-socket-proxy for some reason is blocking these request but I've tried many things like enabling all permissions in docker-socket-proxy and even that did not resolve this issue.

I obviously might just have just missed something stupid so wanted to reach out and see if anyone had anything to add here.

Note: I run Docker in WSL2 (Linux Desktop 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux) on Windows 11 Pro (22H2 22621.3880).

Logs

No response

Context

No response

Please tick the boxes

github-actions[bot] commented 3 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

manuel-rw commented 3 months ago

Hi, please post your log: https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log https://homarr.dev/docs/community/faq#how-do-i-post-logs

Please note that third party software (like the proxy) is generally out of our support scope.

Celarye commented 3 months ago

Hi, please post your log: https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log https://homarr.dev/docs/community/faq#how-do-i-post-logs

Here you go, not much to see though: https://pastebin.com/9mUxASG5.

Please note that third party software (like the proxy) is generally out of our support scope.

I understand, I'll make an issue in the proxy GitHub repo in that case. Just wanted to see if anyone here might know anything that could help me.

manuel-rw commented 3 months ago

I don't see any errors in the log. Just to note; I am unsure whether the proxy you're using actually doesn't work as intended or if you misconfigured it. I would avoid creating a bug ticket for the proxy repo unless you're sure that this is definetly an issue with the proxy. My previous statement is just saying that we don't provide support for this setup and you'll have to figure this out yourself. However, we're more than happy to answer questions about Homarr or implement a bug fix if there is actually an issue in Homarr. Cheers 👋

Celarye commented 3 months ago

I don't see any errors in the log.

Yeah, I could not find a way to have more verbose logs in Homarr.

Just to note; I am unsure whether the proxy you're using actually doesn't work as intended or if you misconfigured it. I would avoid creating a bug ticket for the proxy repo unless you're sure that this is definetly an issue with the proxy.

I don't know myself if i misconfigured it or if something is not working as intended as both container logs are way too minimal to tell what's going on.

I was hoping to find someone else who uses the proxy (as I have found old issues regarding support for this container and setup in here (ex. https://github.com/ajnart/homarr/issues/758)).

Celarye commented 3 months ago

Yeah, I could not find a way to have more verbose logs in Homarr.

The browser console logs indicate a server side error but the server logs don't show any corresponding errors.

github-actions[bot] commented 1 month ago

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏