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
docker compose dashes in environment (.env) - unexpected character "-" in variable name near #9570
Comments
Related: compose-spec/compose-go#271 (which adds |
Any chance this ticket could be taken in work? In Spring Framework dashes are widely used, and this change doesn't allow developers to use |
I have the same kind of error on alpine latest with:
When I include the following code in my docker compose file:
and the environment variables contains a dash, then the port 69 is not exposed without any warning or error (this was hard to debug). |
Edit to my previous post: removing the dash in the environment path or quoting the volume definition indeed bring back the exposed port while executing docker ps.
|
any update for this? afaik, specs for env is IEEE Std 1003.1-2001 - any printable character but = and NUL is valid. so this issue should be treated as bug |
Thanks for filing compose-spec/compose-go#310 (linking it here). |
fixed by compose-spec/compose-go#336 |
Windows Server 2019
Docker compose - v2.6.0
Docker - Docker version 20.10.9, build 591094d
I am getting unexpected character "-" in variable name near error if environment variable has dash in the name. It worked fine before the upgrade.
The text was updated successfully, but these errors were encountered: