{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20467","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20467/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20467/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20467/events","html_url":"https://github.com/docker/docker/issues/20467","id":134723285,"number":20467,"title":"`docker import -` no longer understands tgz format","user":{"login":"stevenschlansker","id":129097,"avatar_url":"https://avatars.githubusercontent.com/u/129097?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenschlansker","html_url":"https://github.com/stevenschlansker","followers_url":"https://api.github.com/users/stevenschlansker/followers","following_url":"https://api.github.com/users/stevenschlansker/following{/other_user}","gists_url":"https://api.github.com/users/stevenschlansker/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenschlansker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenschlansker/subscriptions","organizations_url":"https://api.github.com/users/stevenschlansker/orgs","repos_url":"https://api.github.com/users/stevenschlansker/repos","events_url":"https://api.github.com/users/stevenschlansker/events{/privacy}","received_events_url":"https://api.github.com/users/stevenschlansker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T22:57:06Z","updated_at":"2016-02-18T22:57:06Z","closed_at":null,"body":"Part of our \"from scratch\" build flow includes building an Ubuntu image from scratch (via `debootstrap`) and then importing it:\r\n`tar -cz -C $DEBOOTSTRAP_DIR . | docker import -`\r\n\r\nThis worked fine in Docker 1.8.3, but seems to now fail on both 1.10.0 and 1.10.1:\r\n```\r\n[steven@Anesthetize:~/ot-code]% tar -cz -C test-dir . | docker import -\r\nError response from daemon: ApplyLayer exit status 1 stdout:  stderr: archive/tar: invalid tar header\r\n[steven@Anesthetize:~/ot-code]% tar -c -C test-dir . | docker import - \r\nsha256:246a98fa9b25b3e21b08c436afd137ad5c8731dee0e535424bafc834ae9a7362\r\n[steven@Anesthetize:~/ot-code]% tar -c -C test-dir -f test.tgz . && docker import test.tgz\r\nsha256:567c4b5809f777f20464ead76864734a5ad45738e3d281f695b9f30cdf5a6f2f\r\n```\r\nSo you can stream a `tar` just fine, or import a `tgz` file, but not stream a `tgz`.\r\nI believe this is a regression, although I don't know exactly which intermediate version broke it."}}