소스 검색

Merge pull request #29709 from allencloud/fix-29708-more-correct-error-message

return more accurate error message when docker kill
Sebastiaan van Stijn 8 년 전
부모
커밋
3702ee13bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      daemon/kill.go

+ 1 - 1
daemon/kill.go

@@ -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 {