mirror of https://github.com/docker/compose.git
Merge pull request #10597 from ndeloof/ComposeProjectName
fix support for project name set by COMPOSE_PROJECT_NAME env var
This commit is contained in:
commit
544b579cb0
|
@ -175,7 +175,7 @@ func (o *ProjectOptions) toProjectName() (string, error) {
|
||||||
return o.ProjectName, nil
|
return o.ProjectName, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
envProjectName := os.Getenv("ComposeProjectName")
|
envProjectName := os.Getenv(ComposeProjectName)
|
||||||
if envProjectName != "" {
|
if envProjectName != "" {
|
||||||
return envProjectName, nil
|
return envProjectName, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue