diff --git a/local/compose/create.go b/local/compose/create.go index 35cf3632a..d977bcff2 100644 --- a/local/compose/create.go +++ b/local/compose/create.go @@ -315,6 +315,9 @@ func getVolumesFrom(project *types.Project, volumesFrom []string) ([]string, []s } for _, vol := range volumesFrom { spec := strings.Split(vol, ":") + if len(spec) == 0 { + continue + } if spec[0] == "container" { volumes = append(volumes, strings.Join(spec[1:], ":")) continue