Get notified (Discord, Slack, email) when Docker images have updates available
1.5K
Get notified when your running Docker images have updates available. Know about security patches and new versions before they become a problem.
You deploy containers and forget about them. Meanwhile, base images get CVE patches, application updates ship, and you're running month-old vulnerable code. DIUN watches your running containers and alerts you when newer image versions exist.
services:
diun:
image: zachbg/docker-diun:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- diun-data:/data
environment:
DIUN_WATCH_INTERVAL: 21600
DIUN_WEBHOOK_URL: https://discord.com/api/webhooks/xxx/yyy
DIUN_WEBHOOK_TYPE: discord
# Label containers you want to watch
nginx:
image: nginx:1.27
labels:
diun.enable: "true"
volumes:
diun-data:
| Variable | Default | Description |
|---|---|---|
DIUN_WATCH_INTERVAL | 21600 | Check interval in seconds (default: 6h) |
DIUN_WATCH_LABEL | diun.enable | Label to filter containers |
DIUN_WATCH_ALL | false | Watch all containers (ignore label) |
DIUN_WEBHOOK_URL | Notification webhook URL | |
DIUN_WEBHOOK_TYPE | generic | discord, slack, email, or generic |
DIUN_SMTP_HOST | SMTP server for email notifications | |
DIUN_SMTP_TO | Email recipient | |
DIUN_SMTP_FROM | diun@localhost | Email sender |
| Label | Description |
|---|---|
diun.enable=true | Watch this container for updates |
environment:
DIUN_WATCH_ALL: "true"
DIUN_WATCH_INTERVAL: 3600
environment:
DIUN_WEBHOOK_URL: https://hooks.slack.com/services/xxx/yyy/zzz
DIUN_WEBHOOK_TYPE: slack
environment:
DIUN_WEBHOOK_TYPE: email
DIUN_SMTP_HOST: smtp.gmail.com:587
DIUN_SMTP_TO: [email protected]
DIUN_SMTP_FROM: [email protected]
Content type
Image
Digest
sha256:6840a9e10…
Size
32.6 MB
Last updated
6 months ago
docker pull zachbg/docker-diun