Skip to content

env_file should take precedence on environment variables #1741

Closed

Description

@docteurklein

I don't understand why it's the other way around.
Changing it means you could have some default values hardcoded in yml, but still allow for custom values per install.

Activity

  1. aanand commented on Jul 21, 2015

    @aanand

    It was done that way for symmetry with docker run (where --env takes precedence over --env-file), but I agree it's not the most useful.

    Changing it would break backwards compatibility, so it'd probably need to be a two-step process of releasing a version that warns about the change if you have variables that conflict, and then making the change in the next version.

  2. thaJeztah commented on Aug 10, 2015

    @thaJeztah
    Member

    if we want this, I think both docker and compose should change (to keep the same behavior)

  3. dnephin commented on Oct 16, 2015

    @dnephin

    Closing this since it needs to happen in docker engine first, and it's unlikely we'll be breaking backwards compatibility.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions