Skip to content

Fix env_file and environment when used with extends - #2418

Merged
aanand merged 1 commit into
docker:masterfrom
dnephin:fix_env_with_extends
Nov 23, 2015
Merged

aanand merged 1 commit into
docker:masterfrom
dnephin:fix_env_with_extends

Conversation

@dnephin

@dnephin dnephin commented Nov 18, 2015

Copy link
Copy Markdown

Fixes #2408
Fixes #2416

This was a regression in 1.5.1. See issues for the symptoms. The problem was that service_dict was being overridden if there was an extends key.

This change moves resolve_environment() so that it happens with related changes to the config.

@dnephin
dnephin force-pushed the fix_env_with_extends branch from 6636c4e to 1e8f767 Compare November 18, 2015 21:07
@krasi-georgiev

Copy link
Copy Markdown

It doesn't solve my case:
https://github.com/vipconsult/dockerfiles

docker-compose -f always-on-prod.yml --x-networking up -d --force-recreate logger

the env-prod doesn't replace the vars defines in env

@aanand

aanand commented Nov 23, 2015

Copy link
Copy Markdown

@vipconsult That's a separate issue. environment takes precedence over env_file, because the -e flag to docker run takes precedence over --env-file. We've discussed changing it elsewhere - see #1741.

@aanand

aanand commented Nov 23, 2015

Copy link
Copy Markdown

LGTM

aanand added a commit that referenced this pull request Nov 23, 2015
Fix env_file and environment when used with extends
@aanand
aanand merged commit aafacd3 into docker:master Nov 23, 2015
@krasi-georgiev

Copy link
Copy Markdown

my case is different since I use env-file and not environment

so I opened another issue
#2446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants