Parcourir la source

Merge pull request #9641 from glours/fix-volumes_from

keep the container reference when volumes_from target a container and not a service
Guillaume Lours il y a 3 ans
Parent
commit
d85751f6d4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg/compose/create.go

+ 1 - 1
pkg/compose/create.go

@@ -680,7 +680,7 @@ func getVolumesFrom(project *types.Project, volumesFrom []string) ([]string, []s
 			continue
 			continue
 		}
 		}
 		if spec[0] == "container" {
 		if spec[0] == "container" {
-			volumes = append(volumes, strings.Join(spec[1:], ":"))
+			volumes = append(volumes, vol)
 			continue
 			continue
 		}
 		}
 		serviceName := spec[0]
 		serviceName := spec[0]