monitor_docker icon indicating copy to clipboard operation
monitor_docker copied to clipboard

Can not connect to Docker API - but Container Log shows regular connections

Open mptr8956 opened this issue 1 year ago • 1 comments

Hi tried to set this one up, but still failing. My setup: HAOS in a proxmox VM and docker in another LXC container. Added the container via docker-compose and bound the docker.sock to it. Trying to connect via console of the LXC & docker -H tcp://10.0.0.1:2376 ps works like a charm.

This is my config in HA: image

If I add the config to Home-Assistant, i see regular calls in the logs of the dockerproxy container: image

But HA drops the following errors in the Log and the entities do not show up:

image

What am I doing wrong?

mptr8956 avatar Jul 08 '24 12:07 mptr8956

I came across your issue while trying to solve a problem I am having, and while I cannot solve my issue, I do think I see your issue....

You have an extra dash in your config, which is causing 2 instances to be attempted, first with a URL, but is missing a mandatory name, and second with a name, but missing your intended url: If you remove the dash before name I think that will solve your issue.

monitor_docker:
  - url: tcp://192.168.1.35:2375
    name: Docker
    buttonenabled: true
    monitored_conditions:
        - version
        - containers_running
        - containers_total
        - state
        - uptime

MadmanMonty avatar Aug 18 '24 12:08 MadmanMonty

This was a typo, so I will close it ;-) But I will check if I can make configuration checks a bit better.

ualex73 avatar Jan 26 '25 10:01 ualex73