-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[BUG] Inside .env file, a variable with literal value containing $ gets duplicated #12315
Comments
Hi @jvitor83 |
@PRITHIVEE i got that, but the single quote is supposed to treat the content as fully literal. At least is what is in: https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/#env-file-syntax
Anyway, I coudn't find a way to have only a single $ in the value! |
The content is treated as fully literal, but then as you run Please explain your use case, so I better understand why this is an issue for you and how you rely on |
@jvitor83 access the env within the container, you wont be seeing the extra "$" when you access the env |
Description
If you have a .env file with some variable containing $ in his value, the result duplicate the $ character.
As we define as literal, we expect it to be as-is.
Steps To Reproduce
Execute:
docker compose config
Output:
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: