mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed wording of ghost-related messages
This commit is contained in:
parent
3527291b47
commit
b1fbebb4a3
2 changed files with 3 additions and 3 deletions
|
@ -577,7 +577,7 @@ func (container *Container) Kill() error {
|
|||
return nil
|
||||
}
|
||||
if container.State.Ghost {
|
||||
return fmt.Errorf("Impossible to kill ghost containers")
|
||||
return fmt.Errorf("Can't kill ghost container")
|
||||
}
|
||||
return container.kill()
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ func (container *Container) Stop() error {
|
|||
return nil
|
||||
}
|
||||
if container.State.Ghost {
|
||||
return fmt.Errorf("Impossible to stop ghost containers")
|
||||
return fmt.Errorf("Can't stop ghot container")
|
||||
}
|
||||
|
||||
// 1. Send a SIGTERM
|
||||
|
|
2
state.go
2
state.go
|
@ -19,7 +19,7 @@ type State struct {
|
|||
func (s *State) String() string {
|
||||
if s.Running {
|
||||
if s.Ghost {
|
||||
return fmt.Sprintf("Running ghost")
|
||||
return fmt.Sprintf("Ghost")
|
||||
}
|
||||
return fmt.Sprintf("Up %s", HumanDuration(time.Now().Sub(s.StartedAt)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue