glance icon indicating copy to clipboard operation
glance copied to clipboard

Docker Containers: Display non-existing containers as missing

Open Tarow opened this issue 7 months ago • 0 comments

Description

When configuring the docker container widget, a config file might look like this:

pages:
  name: Home
- columns:
    widgets:
    - cache: 30s
      category: Monitoring
      running-only: false
      title: Monitoring
      type: docker-containers
      containers:
        dozzle:
          category: Monitoring
          description: Container Log Viewer
          icon: di:dozzle
          name: Dozzle
          url: https://dozzle.example.com

I am expecting the container to exist, but it will only show up on the Dashboard if it's either running or stopped. If the container doesn't exist at all, the container won't show up as failing/missing:

Image

This is especially limiting when working with Podman Quadlets. The Quadlet generator will typically generate ExecStop and ExecStopPost hooks such as:

ExecStop=/nix/store/xymqb4i2pfxdzr3ban7x289lkfaz7gds-podman-5.4.1/bin/podman rm -v -f -i --cidfile=%t/%N.cid
ExecStopPost=-/nix/store/xymqb4i2pfxdzr3ban7x289lkfaz7gds-podman-5.4.1/bin/podman rm -v -f -i --cidfile=%t/%N.cid

A failing service won't leave behind a stopped container, since the container will be removed as well. Thus, failing services won't be shown on the dashboard.

When configuring containers in the yaml config file, it'd be nice to see expected containers that don't exist as missing.

Tarow avatar Sep 22 '25 17:09 Tarow