From 0e693be6cc4c02afac670213d945027fc5dd7df0 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Fri, 13 May 2016 11:07:26 +0100 Subject: [PATCH] Don't merge in container image metadata into containers anymore. --- render/container.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/render/container.go b/render/container.go index 2cc8b1d1c9..7a5af30a06 100644 --- a/render/container.go +++ b/render/container.go @@ -62,9 +62,8 @@ type containerWithImageNameRenderer struct { Renderer } -// Render produces a process graph where the minor labels contain the -// container name, if found. It also merges the image node metadata into the -// container metadata. +// Render produces a container graph where the the latest metadata contains the +// container image name, if found. func (r containerWithImageNameRenderer) Render(rpt report.Report, dct Decorator) report.Nodes { containers := r.Renderer.Render(rpt, dct) images := SelectContainerImage.Render(rpt, dct) @@ -81,7 +80,7 @@ func (r containerWithImageNameRenderer) Render(rpt report.Report, dct Decorator) continue } output := c.Copy() - output.Latest = image.Latest.Merge(c.Latest) + output = propagateLatest(docker.ImageName, image, output) outputs[id] = output } return outputs