Browse code

return more accurate error message when docker kill

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/12/27 01:00:42
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ func (daemon *Daemon) killWithSignal(container *container.Container, sig int) er
61 61
 
62 62
 	// We could unpause the container for them rather than returning this error
63 63
 	if container.Paused {
64
-		return fmt.Errorf("Container %s is paused. Unpause the container before stopping", container.ID)
64
+		return fmt.Errorf("Container %s is paused. Unpause the container before stopping or killing", container.ID)
65 65
 	}
66 66
 
67 67
 	if !container.Running {