|
|
|
|
@ -332,6 +332,12 @@ func (client dockerClient) HasNewImage(ctx context.Context, container t.Containe
|
|
|
|
|
currentImageID := t.ImageID(container.ContainerInfo().ContainerJSONBase.Image)
|
|
|
|
|
imageName := container.ImageName()
|
|
|
|
|
|
|
|
|
|
imageIDSetByLabel, ok := container.ContainerInfo().Config.Labels[originalImageIDLabel]
|
|
|
|
|
if ok {
|
|
|
|
|
currentImageID = t.ImageID(imageIDSetByLabel)
|
|
|
|
|
log.Infof("Original image id for %s found: (%s)", imageName, currentImageID.ShortID())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
newImageInfo, _, err := client.api.ImageInspectWithRaw(ctx, imageName)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, currentImageID, err
|
|
|
|
|
|