Przeglądaj źródła

only check volume mounts for updated config

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 11 miesięcy temu
rodzic
commit
038c81f34e
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      pkg/compose/convergence.go

+ 3 - 0
pkg/compose/convergence.go

@@ -384,6 +384,9 @@ func checkExpectedNetworks(expected types.ServiceConfig, actual moby.Container,
 func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, volumes map[string]string) bool {
 	// check container's volume mounts and search for the expected ones
 	for _, vol := range expected.Volumes {
+		if vol.Type != string(mmount.TypeVolume) {
+			continue
+		}
 		id := volumes[vol.Source]
 		found := false
 		for _, mount := range actual.Mounts {