1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <sdu.liu@huawei.com>
This commit is contained in:
Liu Hua 2015-03-29 10:17:17 +08:00
parent 91abff41dd
commit 663d913011

View file

@ -203,7 +203,7 @@ func (container *Container) LogEvent(action string) {
d.EventsService.Log(
action,
container.ID,
d.Repositories().ImageName(container.ImageID),
container.Config.Image,
)
}