From ac0bbebed03fa1af49d76da8ea759d08d7f85ed1 Mon Sep 17 00:00:00 2001 From: Liu Hua Date: Sun, 29 Mar 2015 10:17:17 +0800 Subject: [PATCH] Show the right image name/ID in job log When we tag an Image with several names and we run one of them, The "create" job will log this event with +job log(create, containerID, Imagename). And the "Imagename" is always the first one (sorted). It is the same to "start/stop/rm" jobs. So use the correct name instand. This PR refer to #10479 Signed-off-by: Liu Hua Upstream-commit: 663d9130118548c648c4463bae088fd983099e08 Component: engine --- components/engine/daemon/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/container.go b/components/engine/daemon/container.go index 2d9487ea68..d18db430a9 100644 --- a/components/engine/daemon/container.go +++ b/components/engine/daemon/container.go @@ -203,7 +203,7 @@ func (container *Container) LogEvent(action string) { d.EventsService.Log( action, container.ID, - d.Repositories().ImageName(container.ImageID), + container.Config.Image, ) }