mirror of
https://github.com/docker/compose.git
synced 2026-10-21 19:33:28 +00:00
Fix runtime ops with missing env file
Signed-off-by: Max Proske <max@mproske.com>
This commit is contained in:
parent
d3a260e533
commit
19ad737ee7
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ func (o *ProjectOptions) projectOrName(ctx context.Context, dockerCli command.Cl
|
|||
name := o.ProjectName
|
||||
var project *types.Project
|
||||
if len(o.ConfigPaths) > 0 || o.ProjectName == "" {
|
||||
p, _, err := o.ToProject(ctx, dockerCli, services, cli.WithDiscardEnvFile)
|
||||
p, _, err := o.ToProject(ctx, dockerCli, services, cli.WithDiscardEnvFile, cli.WithoutEnvironmentResolution)
|
||||
if err != nil {
|
||||
envProjectName := os.Getenv(ComposeProjectName)
|
||||
if envProjectName != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue