浏览代码

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 3 年之前
父节点
当前提交
d85751f6d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 		}
 		if spec[0] == "container" {
-			volumes = append(volumes, strings.Join(spec[1:], ":"))
+			volumes = append(volumes, vol)
 			continue
 		}
 		serviceName := spec[0]