Skip to content

Interpolation documentation of env is misleading #20735

@pjlsergeant

Description

@pjlsergeant

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

"Use the env_file attribute" > "Additional information" specifically states:

In addition, as the .env file supports interpolation, it is possible to combine those with values set by environment.

However, this is very misleading, because this isn't true for env files specified using env_file, which is the subject of the documentation at this point. This line would be better changed to something along the lines of:

The variable interpolation supported by the .env file is explicitly not available to env files specified using env_file.

This bug is essentially a repeat of this comment on a different issue, which I found while trying to debug why it wasn't working.

Location

https://docs.docker.com/compose/environment-variables/set-environment-variables/

Suggestion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions