mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove running judgement when unpause container
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
bf0077c138
commit
0bac72e4bd
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue