mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add time since exit in docker ps
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
parent
68dc189680
commit
15a267b57d
1 changed files with 1 additions and 1 deletions
|
@ -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("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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue