mirror of https://github.com/docker/docs.git
Merge pull request #4733 from vieux/3729_time_exit
add time since exit in docker ps
This commit is contained in:
commit
1e56ec8b67
|
@ -28,7 +28,7 @@ func (s *State) String() string {
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("Up %s", utils.HumanDuration(time.Now().UTC().Sub(s.StartedAt)))
|
return fmt.Sprintf("Up %s", utils.HumanDuration(time.Now().UTC().Sub(s.StartedAt)))
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("Exit %d", s.ExitCode)
|
return fmt.Sprintf("Exited (%d) %s ago", s.ExitCode, utils.HumanDuration(time.Now().UTC().Sub(s.FinishedAt)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *State) IsRunning() bool {
|
func (s *State) IsRunning() bool {
|
||||||
|
|
Loading…
Reference in New Issue