diff --git a/containerstore.go b/containerstore.go index 2756e2a68b9e..bdd1c6066a79 100644 --- a/containerstore.go +++ b/containerstore.go @@ -189,6 +189,7 @@ func containersFromProto(containerspb []containersapi.Container) []containers.Co var containers []containers.Container for _, container := range containerspb { + container := container containers = append(containers, containerFromProto(&container)) } diff --git a/image_store.go b/image_store.go index fd79e8929f52..a9702822afe2 100644 --- a/image_store.go +++ b/image_store.go @@ -129,6 +129,7 @@ func imagesFromProto(imagespb []imagesapi.Image) []images.Image { var images []images.Image for _, image := range imagespb { + image := image images = append(images, imageFromProto(&image)) }