Sfoglia il codice sorgente

remove running judgement when unpause container

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 anni fa
parent
commit
0bac72e4bd
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  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()
 	container.Lock()
 	defer container.Unlock()
 	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
 	// We cannot unpause the container which is not paused
 	if !container.Paused {
 	if !container.Paused {
 		return fmt.Errorf("Container %s is not paused", container.ID)
 		return fmt.Errorf("Container %s is not paused", container.ID)