Selaa lähdekoodia

record the error of removing volumes

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Ma Shimiao 10 vuotta sitten
vanhempi
commit
49da029030
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      daemon/delete.go

+ 4 - 1
daemon/delete.go

@@ -55,7 +55,10 @@ func (daemon *Daemon) ContainerRm(name string, config *ContainerRmConfig) error
 		return fmt.Errorf("Cannot destroy container %s: %v", name, err)
 	}
 
-	container.removeMountPoints(config.RemoveVolume)
+	if err := container.removeMountPoints(config.RemoveVolume); err != nil {
+		logrus.Errorf("%v", err)
+	}
+
 	return nil
 }