Files
docker-cli/components/engine/pkg/archive
Andy Goldstein 717d7acf81 Fix invalid argument error on push
With 32ba6ab from #9261, TempArchive now closes the underlying file and
cleans it up as soon as the file's contents have been read. When pushing
an image, PushImageLayerRegistry attempts to call Close() on the layer,
which is a TempArchive that has already been closed. In this situation,
Close() returns an "invalid argument" error.

Add a Close method to TempArchive that does a no-op if the underlying
file has already been closed.

Signed-off-by: Andy Goldstein <agoldste@redhat.com>
Upstream-commit: 48ec176cd51da20e23564941da2d9906a7779d28
Component: engine
2014-12-03 16:12:24 -05:00
..
2014-12-03 16:12:24 -05:00
2014-11-25 01:03:41 +02:00
2014-11-25 01:03:41 +02:00
2014-09-29 23:23:36 -07:00

This code provides helper functions for dealing with archive files.