Fixed wording of ghost-related messages
Upstream-commit: b1fbebb4a3611d340176ad637a22d2250085a077 Component: engine
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user