Skip to content

buchkovsky/slack-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-docker

A Slack integration to notify Docker events.

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 https://raw.githubusercontent.com/int128/slack-docker/master/docker-compose.yml
docker-compose up -d

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:)'

Contribution

Please let me know an issue or pull request.

About

Slack integration for notifying Docker events

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%