{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-py/issues/665","labels_url":"https://api.github.com/repos/docker/docker-py/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-py/issues/665/comments","events_url":"https://api.github.com/repos/docker/docker-py/issues/665/events","html_url":"https://github.com/docker/docker-py/issues/665","id":92307255,"number":665,"title":"build() output is forced to stream=True with any server API version >= 1.8","user":{"login":"jbaviat","id":458756,"avatar_url":"https://avatars.githubusercontent.com/u/458756?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaviat","html_url":"https://github.com/jbaviat","followers_url":"https://api.github.com/users/jbaviat/followers","following_url":"https://api.github.com/users/jbaviat/following{/other_user}","gists_url":"https://api.github.com/users/jbaviat/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaviat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaviat/subscriptions","organizations_url":"https://api.github.com/users/jbaviat/orgs","repos_url":"https://api.github.com/users/jbaviat/repos","events_url":"https://api.github.com/users/jbaviat/events{/privacy}","received_events_url":"https://api.github.com/users/jbaviat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T08:02:50Z","updated_at":"2015-07-02T22:58:48Z","closed_at":"2015-07-02T22:58:48Z","body":"The build output is forced to stream=True with my Docker's version, and for any version >= 1.8.\r\n\r\nHence, there is no easy way to retrive the built image ID (cf. #255 and #392).\r\n\r\nIn file `docker/client.py`, method `build`, around line 347:\r\n```python\r\n         if utils.compare_version('1.8', self._version) >= 0:\r\n             stream = True\r\n```\r\n\r\nMy Docker version:\r\n```\r\n﻿Client version: 1.7.0\r\nClient API version: 1.19\r\n...\r\nServer version: 1.7.0\r\nServer API version: 1.19\r\n```\r\n\r\nIs there possibly something I'm missing there?"},"comment":{"url":"https://api.github.com/repos/docker/docker-py/issues/comments/118188413","html_url":"https://github.com/docker/docker-py/issues/665#issuecomment-118188413","issue_url":"https://api.github.com/repos/docker/docker-py/issues/665","id":118188413,"user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T22:58:48Z","updated_at":"2015-07-02T22:58:48Z","body":"Already addressed and the two issues you've linked to contain a code snippet that responds to your particular use case."}}