Skip to content

Commit

Permalink
Clear existing env variables for containers before adding from docker…
Browse files Browse the repository at this point in the history
… CLI (#393)

The env var we pass to container would be returned from docker inspect command

Resolves #392
  • Loading branch information
smitpatel authored Oct 19, 2023
1 parent c17e68f commit dea847b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Aspire.Hosting/Dashboard/DashboardViewModelService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ private static async Task FillEnvironmentVariablesFromDocker(ContainerViewModel
envVars.Add(new EnvVar { Name = parts[0], Value = parts[1] });
}
}
containerViewModel.Environment.Clear();
FillEnvironmentVariables(containerViewModel.Environment, envVars, envVars);
}
}
Expand Down

0 comments on commit dea847b

Please sign in to comment.