1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #28926 from coolljt0725/fix_save

Fix docker save with empty timestamp of layer created time
This commit is contained in:
Tõnis Tiigi 2016-11-30 11:23:19 -08:00 committed by GitHub
commit dd20fa60b4

View file

@ -235,7 +235,9 @@ func (s *saveSession) saveImage(id image.ID) (map[layer.DiffID]distribution.Desc
var layers []string
var foreignSrcs map[layer.DiffID]distribution.Descriptor
for i := range img.RootFS.DiffIDs {
v1Img := image.V1Image{}
v1Img := image.V1Image{
Created: img.Created,
}
if i == len(img.RootFS.DiffIDs)-1 {
v1Img = img.V1Image
}