{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/21754","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/21754/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/21754/comments","events_url":"https://api.github.com/repos/docker/docker/issues/21754/events","html_url":"https://github.com/docker/docker/pull/21754","id":145829258,"number":21754,"title":"[wip] Fixes #21660: Augment load API to return imported images ","user":{"login":"saeta","id":1284535,"avatar_url":"https://avatars.githubusercontent.com/u/1284535?v=3","gravatar_id":"","url":"https://api.github.com/users/saeta","html_url":"https://github.com/saeta","followers_url":"https://api.github.com/users/saeta/followers","following_url":"https://api.github.com/users/saeta/following{/other_user}","gists_url":"https://api.github.com/users/saeta/gists{/gist_id}","starred_url":"https://api.github.com/users/saeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeta/subscriptions","organizations_url":"https://api.github.com/users/saeta/orgs","repos_url":"https://api.github.com/users/saeta/repos","events_url":"https://api.github.com/users/saeta/events{/privacy}","received_events_url":"https://api.github.com/users/saeta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/distribution","name":"group/distribution","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/status/1-design-review","name":"status/1-design-review","color":"fef2c0"},{"url":"https://api.github.com/repos/docker/docker/labels/status/failing-ci","name":"status/failing-ci","color":"888888"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-04T23:05:50Z","updated_at":"2016-05-13T17:02:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/21754","html_url":"https://github.com/docker/docker/pull/21754","diff_url":"https://github.com/docker/docker/pull/21754.diff","patch_url":"https://github.com/docker/docker/pull/21754.patch"},"body":"This is a WIP branch. I'm looking for input on what the http response should be when loading a tar file containing docker images.\r\n\r\n**- What I did**\r\n\r\n**- How I did it**\r\n\r\n**- How to verify it**\r\n\r\n**- A picture of a cute animal (not mandatory but encouraged)**\r\n\r\n\r\nWhen importing a TAR file of container images, the Docker API should return the list of images that were successfully imported. This commit tracks the changes made, but breaks the current docker client, which expects a streaming HTTP response containing a sequence of status messages.\r\n\r\nWith a bit of `io.Copy(response, stdout)`, the current (broken) responses look as follows when importing the `hello-world` image contained in a tar file produced by `docker save`:\r\n\r\n```\r\n&{0xc820652780 map[Content-Type:[application/json] Server:[Docker/1.11.0-dev (linux)] Date:[Fri, 01 Apr 2016 18:55:29 GMT] Content-Length:[1733]] 200}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":512,\"total\":2560},\"progress\":\"[==========\\u003e                                        ]    512 B/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":1472,\"total\":2560},\"progress\":\"[============================\\u003e                      ] 1.472 kB/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":1536,\"total\":2560},\"progress\":\"[==============================\\u003e                    ] 1.536 kB/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":2048,\"total\":2560},\"progress\":\"[========================================\\u003e          ] 2.048 kB/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":2560,\"total\":2560},\"progress\":\"[==================================================\\u003e]  2.56 kB/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":2560,\"total\":2560},\"progress\":\"[==================================================\\u003e]  2.56 kB/2.56 kB\",\"id\":\"b652ec3a27e7\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":512,\"total\":1024},\"progress\":\"[=========================\\u003e                         ]    512 B/1.024 kB\",\"id\":\"5f70bf18a086\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":1024,\"total\":1024},\"progress\":\"[==================================================\\u003e] 1.024 kB/1.024 kB\",\"id\":\"5f70bf18a086\"}\r\n{\"status\":\"Loading layer\",\"progressDetail\":{\"current\":1024,\"total\":1024},\"progress\":\"[==================================================\\u003e] 1.024 kB/1.024 kB\",\"id\":\"5f70bf18a086\"}\r\n[\"sha256:690ed74de00f99a7d00a98a5ad855ac4febd66412be132438f9b8dbd300a937d\"]\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/219101230","html_url":"https://github.com/docker/docker/pull/21754#issuecomment-219101230","issue_url":"https://api.github.com/repos/docker/docker/issues/21754","id":219101230,"user":{"login":"GordonTheTurtle","id":10620046,"avatar_url":"https://avatars.githubusercontent.com/u/10620046?v=3","gravatar_id":"","url":"https://api.github.com/users/GordonTheTurtle","html_url":"https://github.com/GordonTheTurtle","followers_url":"https://api.github.com/users/GordonTheTurtle/followers","following_url":"https://api.github.com/users/GordonTheTurtle/following{/other_user}","gists_url":"https://api.github.com/users/GordonTheTurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonTheTurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonTheTurtle/subscriptions","organizations_url":"https://api.github.com/users/GordonTheTurtle/orgs","repos_url":"https://api.github.com/users/GordonTheTurtle/repos","events_url":"https://api.github.com/users/GordonTheTurtle/events{/privacy}","received_events_url":"https://api.github.com/users/GordonTheTurtle/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T17:02:33Z","updated_at":"2016-05-13T17:02:33Z","body":"Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch."}}