浏览代码

Merge pull request #26079 from allencloud/unpause-container-no-running

remove running judgement when unpause container
Brian Goff 8 年之前
父节点
当前提交
4edb83f4fd
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      daemon/unpause.go

+ 0 - 5
daemon/unpause.go

@@ -25,11 +25,6 @@ func (daemon *Daemon) containerUnpause(container *container.Container) error {
 	container.Lock()
 	defer container.Unlock()
 
-	// We cannot unpause the container which is not running
-	if !container.Running {
-		return errNotRunning{container.ID}
-	}
-
 	// We cannot unpause the container which is not paused
 	if !container.Paused {
 		return fmt.Errorf("Container %s is not paused", container.ID)