Closed Morphy99 closed 5 years ago
Got this working now, I didn't add /var/run/docker.sock to volumes in HA container. Would be nice to have this available in HACS though for any updates.
+1 for HACS support if possible
@Morphy99 can you help me that how can I add /var/run/docker.sock to volumes in HA container?
@therealbadrobot do you have portainer? Or how do you create the container?
Yes, I have Portainer.
This repo is supported by HACS : https://github.com/Sanderhuisman/docker_monitor
Unfortunately i cannot get docker_monitor to work with hass.io because /var/run/docker.sock is not mapped inside the official hass.io container.
Thank you! Looks like I have a same problem.
Cool, click edit/clone in the container. Under volumes at the bottom "map another volume" and then click "bind" on the right of the container field. Took me a while to figure that one out! Note: my container path is /run not /var/run as I'm running on Libreelec, afaik it's normally the latter on Ubuntu.
@Sjeff I can't add this under custom repos I get unable to add at this time check the log. In fairness I haven't checked the log yet..
A thousand thanks and gratitude! It is working now! :) I've tried here but I didn't dare to pke it.
No problem! I do a lot of poking and just make sure to backup if I'm poking with docker 😁
@Morphy99 did you add the repo as intergration?
Just added the same repo to my dev environment.
Ahh yep that's it. Thanks!
Unfortunately you have to add the mapping /var/run/docker.sock in portainer every time there is a update for hass.io. Also the hass.io addons do not play nice with this component because the ID of the container changes when turn on/off the container via the addon store. For now i keep HADockermon and rest switches for the hass.io addons.
How can I enable this when I'm using HACS or can this project be added to that?