Docker registry notifications multiple push

I’m using my own private Docker registry and I would like to send Slack notifications when a new image is pushed.

I used Huginn to catch registry webhook notifications and send to Slack. My issue is that Docker registry send multiple notifications when an image is pushed with same informations:

  • Docker: Use sockets for communication between 2 containers
  • How to link two docker services in coreos with flannel?
  • Pushing image to shared private repo
  • can't upate php.ini file in Docker container
  • Problems running npm install during docker-compose build
  • fleetctl load hello.service hangs
  • "action": "push"

    How can I send only one notification from docker registry? Or differenciate the last notification?

  • How to show all users in dockers group?
  • Docker container: MongoDb Insufficient free space for journal files
  • Docker for Mac: Hostname setup for container
  • Symfony2 app slow response on MacOS & Boot2Docker
  • tor browser in docker, how using with X or Wayland
  • Use zabbix inside a Dockercontainer to monitor a server
  • One Solution collect form web for “Docker registry notifications multiple push”

    I found the solution!

    I check only action == push and mediaType == application/vnd.docker.distribution.manifest.v2+json

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.