зеркало из https://github.com/microsoft/docker.git
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:
Родитель
91abff41dd
Коммит
663d913011
|
@ -203,7 +203,7 @@ func (container *Container) LogEvent(action string) {
|
|||
d.EventsService.Log(
|
||||
action,
|
||||
container.ID,
|
||||
d.Repositories().ImageName(container.ImageID),
|
||||
container.Config.Image,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче