diff --git a/daemon/images/image_history.go b/daemon/images/image_history.go index 1617f8be62..f621ceae13 100644 --- a/daemon/images/image_history.go +++ b/daemon/images/image_history.go @@ -43,9 +43,14 @@ func (i *ImageService) ImageHistory(ctx context.Context, name string) ([]*image. layerCounter++ } + var created int64 + if h.Created != nil { + created = h.Created.Unix() + } + history = append([]*image.HistoryResponseItem{{ ID: "", - Created: h.Created.Unix(), + Created: created, CreatedBy: h.CreatedBy, Comment: h.Comment, Size: layerSize,