diff --git a/daemon/monitor.go b/daemon/monitor.go index c307711e20..90998d4643 100644 --- a/daemon/monitor.go +++ b/daemon/monitor.go @@ -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)