Public | Automated Build

Last pushed: 7 days ago
Short Description
Slack integration for notifying Docker events
Full Description


A Slack integration to notify Docker events.

<img width="623" alt="slack-docker-screenshot" src="">

How to Run

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
docker-compose up -d

Include docker hostname in the messages

If you run standalone docker hosts you'll probably find usefull include the HOSTNAME in the
messages posted to slack. Run the container as follows:

# Docker
docker run --net=host --env include_hostname=1 -d -e webhook=URL -v /var/run/docker.sock:/var/run/docker.sock int128/slack-docker

or set the variable explicitly

# Docker
docker run --env HOSTNAME=${HOSTNAME} --env include_hostname=1 -d -e webhook=URL -v /var/run/docker.sock:/var/run/docker.sock int128/slack-docker

Filter events by image name

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.

Docker Pull Command
Source Repository