Browse Source

Add continue on error in mountspec backport

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 8 years ago
parent
commit
d6e1cb7cbf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      daemon/volumes.go

+ 1 - 0
daemon/volumes.go

@@ -281,6 +281,7 @@ func (daemon *Daemon) backportMountSpec(container *container.Container) {
 		from, _, err := volume.ParseVolumesFrom(fromSpec)
 		from, _, err := volume.ParseVolumesFrom(fromSpec)
 		if err != nil {
 		if err != nil {
 			logrus.WithError(err).WithField("id", container.ID).Error("Error reading volumes-from spec during mount spec backport")
 			logrus.WithError(err).WithField("id", container.ID).Error("Error reading volumes-from spec during mount spec backport")
+			continue
 		}
 		}
 		fromC, err := daemon.GetContainer(from)
 		fromC, err := daemon.GetContainer(from)
 		if err != nil {
 		if err != nil {