Skip to content
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

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

Open
mptr8956 opened this issue Jul 8, 2024 · 1 comment

Comments

@mptr8956
Copy link

mptr8956 commented Jul 8, 2024

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?

@MadmanMonty
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants