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:
parent
91abff41dd
commit
663d913011
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ func (container *Container) LogEvent(action string) {
|
|||
d.EventsService.Log(
|
||||
action,
|
||||
container.ID,
|
||||
d.Repositories().ImageName(container.ImageID),
|
||||
container.Config.Image,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue