mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ee5228e799
After https://github.com/docker/docker/pull/28926, if saving multiple images which have common layers at same time, the common layers can't share in the tar archive because the hash ID changes because of the Create time. The Create time is used for pre v1.9 which treat each layer as a image and make no sense for after v1.10. To make the hash ID consistent and keep the image save from >1.10 working properly on pre v1.9, using a constant Create time `time.Unix(0,0)`. Signed-off-by: Lei Jitang <leijitang@huawei.com> |
||
---|---|---|
.. | ||
load.go | ||
save.go | ||
tarexport.go |