Docker or Portainer integration

Hi
I’ve search the forums but’ve come up empty.
I’m looking for a way to integrate from HA to Docker Engine or Portainer (think Portainer has some APIs)
I want to be able to monitor and restart containers from an automation or script. Is this possible?

Thanks

The only way I know how to access Docker containers from HA is using the following:

https://philhawthorne.com/ha-dockermon-use-home-assistant-to-monitor-start-or-stop-docker-containers/

2 Likes

Yeah I use that to get stats for my containers (memory etc) as well as turning on/off. Works great.

Thanks a bunch!