ha-dockermon icon indicating copy to clipboard operation
ha-dockermon copied to clipboard

docker swarm compatibility

Open Edzilla2000 opened this issue 7 years ago • 2 comments

I use docker-swarm for my home assistant stack and if I use ha-dockermon, it shows the containers (a lot of containers as swarm has stopped and started many).

It would be perfect if ha-dockermon could show me service states instead.

Edzilla2000 avatar Aug 22 '18 11:08 Edzilla2000

Interesting use case!

Are you able to provide the output of a GET request to a container? For example http://127.0.0.1:8126/container/home-assistant

I'll see if there's something I can use to denote that it is part of a swarm and instead show the service state.

philhawthorne avatar Aug 22 '18 11:08 philhawthorne

Yes, here it is

curl http://127.0.0.1:8126/container/homeassistant_homeassistant.1.frfpzw7mailiwgg2vh8fwhbk7
{"state":"running","status":"Up About an hour (healthy)","image":"homeassistant/home-assistant:latest@sha256:62e066e1e9997fe3627a9e247d40fba0d197ed0bc34f2c025821f4c61b7989d0"}#

Edzilla2000 avatar Aug 22 '18 12:08 Edzilla2000