mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Fix: use image created time when last tag time is not present
Signed-off-by: Kian Eliasi <kian.elbo@gmail.com>
This commit is contained in:
committed by
Nicolas De loof
parent
73e593e69a
commit
6078b4d99d
@@ -103,7 +103,7 @@ func runImages(ctx context.Context, dockerCli command.Cli, backend api.Service,
|
||||
for ctr, i := range images {
|
||||
lastTagTime := i.LastTagTime
|
||||
if lastTagTime.IsZero() {
|
||||
lastTagTime = time.Now()
|
||||
lastTagTime = i.Created
|
||||
}
|
||||
imageList = append(imageList, img{
|
||||
ContainerName: ctr,
|
||||
|
||||
Reference in New Issue
Block a user