Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolation documentation of env is misleading #20735

Closed
1 task done
pjlsergeant opened this issue Aug 29, 2024 · 1 comment · Fixed by #21115
Closed
1 task done

Interpolation documentation of env is misleading #20735

pjlsergeant opened this issue Aug 29, 2024 · 1 comment · Fixed by #21115
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary lifecycle/locked status/triage Needs triage

Comments

@pjlsergeant
Copy link

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

@pjlsergeant pjlsergeant added the status/triage Needs triage label Aug 29, 2024
@dvdksn dvdksn added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Aug 29, 2024
iamAyushChamoli added a commit to iamAyushChamoli/docker-docs that referenced this issue Aug 30, 2024
@aevesdocker aevesdocker mentioned this issue Oct 14, 2024
3 tasks
@docker-robot
Copy link

docker-robot bot commented Nov 14, 2024

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker-robot docker-robot bot locked and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary lifecycle/locked status/triage Needs triage
Projects
None yet
2 participants