Merge pull request #45494 from thaJeztah/24.0_backport_execDuration_in_containerExit

[24.0 backport] daemon: handleContainerExit(): add execDuration in attributes
This commit is contained in:
Sebastiaan van Stijn 2023-05-09 17:00:29 +02:00 committed by GitHub
commit 31b98f9502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,8 @@ func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontaine
}
attributes := map[string]string{
"exitCode": strconv.Itoa(exitStatus.ExitCode),
"exitCode": strconv.Itoa(exitStatus.ExitCode),
"execDuration": strconv.Itoa(int(execDuration.Seconds())),
}
daemon.Cleanup(c)