A Slack integration to notify Docker events.
Set up an incoming WebHook integration and get the Webhook URL.
Run a container as follows:
# Docker
docker run -d -e webhook=URL -v /var/run/docker.sock:/var/run/docker.sock int128/slack-docker
# Docker Compose
curl -O https://raw.githubusercontent.com/int128/slack-docker/master/docker-compose.yml
docker-compose up -d
By default all events are sent to Slack, but events can be filtered by the environment variable image_regexp
as follows:
# show events only from node
-e image_regexp='^node:'
# show events but exclude from node
-e image_regexp='^(?!node:)'
Please let me know an issue or pull request.