{"action":"created","issue":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/353","labels_url":"https://api.github.com/repos/docker-java/docker-java/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/docker-java/docker-java/issues/353/comments","events_url":"https://api.github.com/repos/docker-java/docker-java/issues/353/events","html_url":"https://github.com/docker-java/docker-java/issues/353","id":113993149,"number":353,"title":"What's the correct way to handle image push failures?","user":{"login":"romanek-adam","id":760766,"avatar_url":"https://avatars.githubusercontent.com/u/760766?v=3","gravatar_id":"","url":"https://api.github.com/users/romanek-adam","html_url":"https://github.com/romanek-adam","followers_url":"https://api.github.com/users/romanek-adam/followers","following_url":"https://api.github.com/users/romanek-adam/following{/other_user}","gists_url":"https://api.github.com/users/romanek-adam/gists{/gist_id}","starred_url":"https://api.github.com/users/romanek-adam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanek-adam/subscriptions","organizations_url":"https://api.github.com/users/romanek-adam/orgs","repos_url":"https://api.github.com/users/romanek-adam/repos","events_url":"https://api.github.com/users/romanek-adam/events{/privacy}","received_events_url":"https://api.github.com/users/romanek-adam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T07:04:09Z","updated_at":"2015-10-30T09:14:17Z","closed_at":null,"body":"Please see a relevant discussion in bmuschko/gradle-docker-plugin#113. Is it correct to expect that PushImageResultCallback.awaitSuccess() would throw an exception on image push failure? Or should it be handled in a different way?"},"comment":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/comments/152466952","html_url":"https://github.com/docker-java/docker-java/issues/353#issuecomment-152466952","issue_url":"https://api.github.com/repos/docker-java/docker-java/issues/353","id":152466952,"user":{"login":"marcuslinke","id":2578608,"avatar_url":"https://avatars.githubusercontent.com/u/2578608?v=3","gravatar_id":"","url":"https://api.github.com/users/marcuslinke","html_url":"https://github.com/marcuslinke","followers_url":"https://api.github.com/users/marcuslinke/followers","following_url":"https://api.github.com/users/marcuslinke/following{/other_user}","gists_url":"https://api.github.com/users/marcuslinke/gists{/gist_id}","starred_url":"https://api.github.com/users/marcuslinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcuslinke/subscriptions","organizations_url":"https://api.github.com/users/marcuslinke/orgs","repos_url":"https://api.github.com/users/marcuslinke/repos","events_url":"https://api.github.com/users/marcuslinke/events{/privacy}","received_events_url":"https://api.github.com/users/marcuslinke/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T09:14:17Z","updated_at":"2015-10-30T09:14:17Z","body":"There should be thrown an exception if the push fails. See https://github.com/docker-java/docker-java/blob/master/src/main/java/com/github/dockerjava/core/command/PushImageResultCallback.java#L46\r\n\r\nMaybe in your specific case there is no `error` or `errorDetail` returned so the push will be handled as successful. So what we need to analyze is a log of the full docker response. If you could reproduce the same situation by using the docker CLI this will be fine. "}}