return more accurate error message when docker kill

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: cf5734b2e16978b7ae224de566a7c21020c88a78
Component: engine
This commit is contained in:
allencloud
2016-12-27 13:38:13 +08:00
parent 71e3564b45
commit b718dea1c9
+1 -1
View File
@@ -61,7 +61,7 @@ func (daemon *Daemon) killWithSignal(container *container.Container, sig int) er
// We could unpause the container for them rather than returning this error
if container.Paused {
return fmt.Errorf("Container %s is paused. Unpause the container before stopping", container.ID)
return fmt.Errorf("Container %s is paused. Unpause the container before stopping or killing", container.ID)
}
if !container.Running {