Skip to content

Conversation

@kcboschert
Copy link
Contributor

Prior to Docker-Compose v2, inherited variables that were undefined on the host would not be defined in the container. This returns the original behavior.

This resolves docker/compose#9031

…the provided lookup function. This restores the original behavior prior to docker-compose v2.

Signed-off-by: kcboschert <[email protected]>
@kcboschert kcboschert requested a review from ndeloof as a code owner January 12, 2022 17:38
@flemay
Copy link

flemay commented Jan 15, 2022

I just noticed your PR today. I created a PR with the same fix last year and replicated it in this repo.

At first, I thought the problem happened only when there were multiple variables in a .env file, therefore my PR was around that. Then I tried today with a single variable in .env file and the result confirmed the issue was still there.

Your PR is more accurate!

@ulyssessouza ulyssessouza merged commit be12d6c into compose-spec:master Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Passthrough Environment Variable behavior: environment vs env_file

3 participants