mirror of https://github.com/docker/compose.git
fix support for project name set by COMPOSE_PROJECT_NAME env var
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
34bd41cc0c
commit
daa6bec80a
|
@ -175,7 +175,7 @@ func (o *ProjectOptions) toProjectName() (string, error) {
|
|||
return o.ProjectName, nil
|
||||
}
|
||||
|
||||
envProjectName := os.Getenv("ComposeProjectName")
|
||||
envProjectName := os.Getenv(ComposeProjectName)
|
||||
if envProjectName != "" {
|
||||
return envProjectName, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue