From 663d9130118548c648c4463bae088fd983099e08 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 --- daemon/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/container.go b/daemon/container.go index 2d9487ea68..d18db430a9 100644 --- a/daemon/container.go +++ b/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, ) }