Signed-off-by: allencloud <allen.sun@daocloud.io>
| ... | ... |
@@ -25,11 +25,6 @@ func (daemon *Daemon) containerUnpause(container *container.Container) error {
|
| 25 | 25 |
container.Lock() |
| 26 | 26 |
defer container.Unlock() |
| 27 | 27 |
|
| 28 |
- // We cannot unpause the container which is not running |
|
| 29 |
- if !container.Running {
|
|
| 30 |
- return errNotRunning{container.ID}
|
|
| 31 |
- } |
|
| 32 |
- |
|
| 33 | 28 |
// We cannot unpause the container which is not paused |
| 34 | 29 |
if !container.Paused {
|
| 35 | 30 |
return fmt.Errorf("Container %s is not paused", container.ID)
|