Fix outdated syntax rule about handling of quotes in Compose .env files#14318
Fix outdated syntax rule about handling of quotes in Compose .env files#14318antoineco wants to merge 1 commit intodocker:mainfrom antoineco:patch-1
.env files#14318Conversation
Since Compose 1.26.0 (https://docs.docker.com/compose/release-notes/#1260), this information doesn't seem to be true anymore. Surrounding quotes are effectively removed from the value, like in a shell.
|
✔️ Deploy Preview for docsdocker ready! 🔨 Explore the source changes: 7e8bbd7 🔍 Inspect the deploy log: https://app.netlify.com/sites/docsdocker/deploys/621c9a394725390008e03b63 😎 Browse the preview: https://deploy-preview-14318--docsdocker.netlify.app |
|
@ulyssessouza Could you PTAL? |
|
Thanks for the pull request. We'd like to make our product docs better, but haven’t been able to review all the suggestions. If the updates are still relevant, review our contribution guidelines and rebase your pull request against the latest version of the docs, then mark it as fresh with a Prevent pull requests from auto-closing with a /lifecycle stale |
|
/remove-lifecycle stale |
|
Superseded by #15759 |
Proposed changes
Since Compose 1.26.0, the following information doesn't seem to be true anymore:
Surrounding quotes (single or double) are effectively removed from the value, like in a shell.
Proof:
With either Compose 1.29.2 or Compose 2.2.3:
After executing
docker-compose upwith either Compose 1.29.2 or Compose 2.2.3:Related:
.envfile processing compose#7150cc. @ulyssessouza, maybe you can validate my assumption that the docs are wrong since you worked on the aforementioned issue a while ago?
Unreleased project version (optional)
Related issues (optional)