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
Create Stack - ENV params parsing error #5661
Comments
I've noticed this too, if an environment variable line contains more than one "=" signs, Portainer seems to parse the value from the last "=" sign instead of the first. Compared to docker-compose which seems to parse the value after the first "=" sign. |
Correct, try a='b=c=d=e' |
Quotation marks didn't work for me. I believe that is per the syntax rules for env files. https://docs.docker.com/compose/env-file/
|
That UI issue has been solved by #5395 You can give it a try by using the image As for the original report, try it without quotes. e.g. this test stack:
|
Just tested with |
Checked the portainerci/portainer:develop image, looks like the bug was fixed....thx |
Bug description
Fail to deploy a stack - environemnt variable parsing error
Expected behavior
simple key value parser for the following variable (replace USER/PASS/DB with yours):
MONGO_URI='mongodb+srv://USER:PASS@cluster0.1x6jg.mongodb.net/DB?retryWrites=true&w=majority'
Portainer Logs
Provide the logs of your Portainer container or Service.
You can see how here
No need a parser werror on web interface
Steps to reproduce the issue:
Technical details:
docker run -p 9443:9443 portainer/portainer
):Additional context
using the same compose file from linux command prompt - work like a charm...
The text was updated successfully, but these errors were encountered: