Skip to content

Commit 533e07a

Browse files
authored
Merge pull request moby#38032 from RohitK89/21497-log-image-name
Add IMAGE_NAME attribute to journald log events
2 parents 22dbbcc + 5f7e102 commit 533e07a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

daemon/logger/journald/journald.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func New(info logger.Info) (logger.Logger, error) {
7171
"CONTAINER_ID_FULL": info.ContainerID,
7272
"CONTAINER_NAME": info.Name(),
7373
"CONTAINER_TAG": tag,
74+
"IMAGE_NAME": info.ImageName(),
7475
"SYSLOG_IDENTIFIER": tag,
7576
}
7677
extraAttrs, err := info.ExtraAttributes(sanitizeKeyMod)

0 commit comments

Comments
 (0)