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:
commit
dd20fa60b4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue