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
Environment files with new line support #18724
Comments
Adding support for this sounds good to me as long as it is backwards compatible with the existing parsing logic. |
Is there any workarounds for this? |
pass the env on the cli with |
Not sure if it is practical enough for me. Actually I'm using |
Same here, I am more inclined to use the CLI rather than the podman/docker compose, and --env-file switch not parsing multiline environment variables is such a bummer. |
This is an open source project we always welcome PRs from the community. |
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
A friendly reminder that this issue had no activity for 30 days. |
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
Close: containers#18724 Signed-off-by: Black-Hole1 <bh@bugs.cc>
The change got reverted as it broke backwards compat. |
Oops, now it breaks docker-compose compatibility... :( |
If you want to keep backward compatibility to that extent, what about adding a new flag for using multi-line environment files? |
Note that the current behaviour is actually docker compatible. docker != docker-compose, docker run --env-file parses the file in the same format as we do. And you can just use docker-compose against the podman socket so there should not be an issue there as the file is always parsed on the client. Adding a new flag with a new format is certainly a possibility |
Yeah, you are correct.
Can we proceed with this option instead? |
Feature request description
Support loading of environment variable files with new line via --env-file, just like how DotEnv does it.
DotEnv Multiline Feature
Currently, loading environment files with values that span multiple lines don't work.
This is a very useful feature that I would like to be implemented.
The text was updated successfully, but these errors were encountered: