This container monitors Docker events and sends notifications to a Telegram chat via bot.
4.3K
This container monitors Docker events and sends notifications to a Telegram chat via bot.
| Variable | Description |
|---|---|
TELEGRAM_BOT_TOKEN | Your Telegram bot token |
TELEGRAM_CHAT_ID | Your Telegram chat ID (group or user) |
MONITOR_INTERVAL | (Optional) Event check interval in seconds. Default: 5 |
Note: Ensure the bot has permission to send messages to the chat ID.
docker run -itd \
--name docker-monitor \
--restart unless-stopped \
--user root \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TELEGRAM_BOT_TOKEN="your_bot_token" \
-e TELEGRAM_CHAT_ID="your_chat_id" \
-e MONITOR_INTERVAL=5 \
garfieldwtf/telegram-docker2:latest
Replace the values with your actual Telegram credentials:
docker run -itd \
--name docker-monitor \
--restart unless-stopped \
--user root \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TELEGRAM_BOT_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" \
-e TELEGRAM_CHAT_ID="-1001234567890" \
-e MONITOR_INTERVAL=10 \
garfieldwtf/telegram-docker2:latest
garfieldwtf/telegram-docker2โ linux/amd64docker stop or docker start on any container.Content type
Image
Digest
sha256:40f80647cโฆ
Size
33.1 MB
Last updated
about 1 year ago
docker pull garfieldwtf/telegram-docker2