Hi everyone,
I built a small lovelace custom Docker Card for monitoring and controlling docker containers directly from Home Assistant.
It works especially well with the official Portainer integration. With auto_discover: true, it can automatically find your containers and show status, controls, CPU/memory usage, image update badges, and optional docker compose stack grouping.
Features:
- Auto-discovery from Portainer
- Start, stop, restart, pause, resume, kill, recreate containers
- Docker host overview: running/stopped counts, images, version, OS, daemon state
- Per-container CPU/memory and extra entities
- Image update badges
- Optional stack grouping and icons
- Prune unused image and volumes
- Theme-aware styling
Example:
type: custom:docker-card
title: Docker @ homelab
auto_discover: true
group_by: stack
containers_expanded: true
More configuration examples are available in the repo README.
GitHub: https://github.com/vineetchoudhary/lovelace-docker-card
Install via HACS:
Feedback, feature requests, and contributions are always welcome!
