fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
939 stars 29 forks source link

Necessary Docker API Section Access #354

Closed jrbarronumd closed 4 months ago

jrbarronumd commented 4 months ago

Hello, and thanks for sharing your work!

I'm trying to get set up with WUD, and the local machine is going well. I also have a remote server on my network running a few things that I'd like to watch. I've been using Homepage to access the Docker API for some time now, with this docker socket proxy container by Tecnativa, recommended by the Homepage docs. The idea behind the proxy container is to selectively expose the socket externally, and it is very conservative as a default.

There is a list of API sections that can be allowed by the proxy container - Is there a defined list of calls used by WUD? I'm guessing the conservatism will have to be pretty well shredded if I want WUD to update containers, but right now it can't even see the socket at all, and I'm not seeing much detail in the logs, other than the snippet below. Any suggestions are greatly appreciated.

19:10:24.680  WARN whats-up-docker/watcher.docker.my-server:
    Error when trying to get the list of the containers to watch ((HTTP code 403) unexpected - <html><body><h1>403 Forbidden</h1>
    Request forbidden by administrative rules.
    </body></html>

     )

Thanks again!

fmartinou commented 4 months ago

Hi,

I haven't tested it but I'd say:

jrbarronumd commented 4 months ago

Awesome, thanks! I'll test it out soon and post back here with findings.

Is this the best place for questions (adding question tag next time)? I have one more question about capabilities, but I haven't finished searching yet to make sure it isn't covered in Docs or elsewhere. I found your Home Assistant forum thread, but it seems pretty dormant...

fmartinou commented 4 months ago

Is this the best place for questions (adding question tag next time)?

Yes, no problem. GitHub issues are fine to me to track questions as well 👌

jrbarronumd commented 4 months ago

Thank you again @fmartinou for the quick response! It seems like everything I'm planning to use is working with the suggested API sections. I am not using WUD to update containers directly, so I can't speak to that. If I come across any new access errors, I'll open another question.