Bläddra i källkod

checkExpectedVolumes must ignore anonymous volumes

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 år sedan
förälder
incheckning
be09b2e8ce
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      pkg/compose/convergence.go

+ 3 - 0
pkg/compose/convergence.go

@@ -387,6 +387,9 @@ func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, v
 		if vol.Type != string(mmount.TypeVolume) {
 			continue
 		}
+		if vol.Source == "" {
+			continue
+		}
 		id := volumes[vol.Source]
 		found := false
 		for _, mount := range actual.Mounts {