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

remove running judgement when unpause container
Upstream-commit: 4edb83f4fd7f8fc1b1a6fdbef1cd2367a0f5574c
Component: engine
This commit is contained in:
Brian Goff
2016-08-29 10:30:40 -04:00
committed by GitHub

View File

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