From 3d18c7ec487d2a523fb96672df21c1d2bbd99423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Fri, 7 Aug 2020 18:09:27 +0200 Subject: [PATCH] Update client.go --- pkg/container/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/container/client.go b/pkg/container/client.go index a74bfba..2306812 100644 --- a/pkg/container/client.go +++ b/pkg/container/client.go @@ -244,7 +244,7 @@ func (client dockerClient) IsContainerStale(container Container) (bool, error) { } func (client dockerClient) HasNewImage(ctx context.Context, container Container) (bool, error) { - oldImageID := container.imageInfo.ID + oldImageID := container.containerInfo.ContainerJSONBase.Image imageName := container.ImageName() newImageInfo, _, err := client.api.ImageInspectWithRaw(ctx, imageName)