Files
docker-cli/cli/command/image
Kir Kolyshkin 0c20554f69 image build: fix archive detection
As pointed out in #1459, docker cli fails to detect that the input is a tarball,
in case it is generated by `git archive --format=tgz`.

This happens because `git archive` adds some metadata to the initial tar header,
and so it is more than 1 block (of 512 bytes) long, while we only provide 1 block
to archive/tar.Next() and it fails.

To fix, give it 2 blocks :)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2019-03-21 15:38:07 -07:00
..
2019-03-21 15:38:07 -07:00
2019-03-21 10:27:59 -07:00
2018-06-08 18:24:26 +02:00
2018-10-23 17:05:44 +02:00
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-12-10 16:48:59 +00:00
2018-12-19 13:48:41 +01:00
2018-12-19 13:48:41 +01:00
2018-06-08 18:24:26 +02:00
2018-06-14 15:48:21 +02:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00