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:

  • exit and delete all but the latest docker container
  • teamcity and docker integration
  • Deploying multicontainer docker environment (flask & nginx) with EBS
  • Docker service Limits and Reservations
  • Manually starting hyperledger peers using docker images
  • How to get a Docker container's IP address from the host?
  • "action": "push"

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

  • Docker create a test machine
  • How to use Docker Remote API to build an image using Dockerfile
  • Using Ansible docker_container, how can I display standard out? (stdout)
  • Child components don't load when deployed Angular2 app on server with NginX
  • Docker - how to send input to a program via the API
  • How to use Docker link in Ansible when link var defined
  • 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.