{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/559","labels_url":"https://api.github.com/repos/docker/distribution/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/559/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/559/events","html_url":"https://github.com/docker/distribution/issues/559","id":80421210,"number":559,"title":"Need info for push/pull notification ","user":{"login":"sourav82","id":9670913,"avatar_url":"https://avatars.githubusercontent.com/u/9670913?v=3","gravatar_id":"","url":"https://api.github.com/users/sourav82","html_url":"https://github.com/sourav82","followers_url":"https://api.github.com/users/sourav82/followers","following_url":"https://api.github.com/users/sourav82/following{/other_user}","gists_url":"https://api.github.com/users/sourav82/gists{/gist_id}","starred_url":"https://api.github.com/users/sourav82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourav82/subscriptions","organizations_url":"https://api.github.com/users/sourav82/orgs","repos_url":"https://api.github.com/users/sourav82/repos","events_url":"https://api.github.com/users/sourav82/events{/privacy}","received_events_url":"https://api.github.com/users/sourav82/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T06:56:28Z","updated_at":"2015-05-26T20:32:22Z","closed_at":null,"body":"I've set up a notification service to capture the notification events while pushing an image to the registry.\r\n\r\nCould you please clarify how notifications are generated? I noticed, while pushing an image, notifications having action \"pull\" also getting generated. \r\n\r\nAlso, I was wondering, when the notification for a layer is actually posted, i,e., before pushing a layer or after a layer has been pushed.\r\n\r\nWhat will be the last notification for an image push? Does the last notification always contain a URL pointing to \"https://IP:PORT/v2/namespace/repo/manifests/tag\" format?"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/105656521","html_url":"https://github.com/docker/distribution/issues/559#issuecomment-105656521","issue_url":"https://api.github.com/repos/docker/distribution/issues/559","id":105656521,"user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T20:32:22Z","updated_at":"2015-05-26T20:32:22Z","body":"@sourav82 Notifications are generated when operations against `distribution.Repository` occur.\r\n\r\nIf there are \"pull\" notifications generated, that may be a bug. We'd need more information to debug that. This could simply be the client checking status, in which case it will be a \"pull\" with a HEAD request.\r\n\r\nThe notifications are generated after the operations are completed.\r\n\r\nAn image push is a number of operations, including layer checks, layer pushes and a manifest push. The final message should be a push of a manifest type. The url will be the \"canonical\" url, which will include the digest, rather than the tag. This ensures that you get the exact data associated with the notification.\r\n\r\nIn the future, if you could keep your issues to single questions or use the mailing list (distribution@dockerproject.org), it would be helpful for us to get you the right answers."}}