remove running judgement when unpause container

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 0bac72e4bd71b01b5315ff60b71d8bcb1a96949a
Component: engine
This commit is contained in:
allencloud
2016-08-29 10:16:18 +08:00
parent 97464f18e4
commit c944ae9d41
-5
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)