• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Forwarded to devs Docker Plugin - When updating environment variables, not able to have an "=" in the variable

Brandon Turpin

Basic Pleskian
TITLE:
Docker Plugin - When updating environment variables, not able to have an "=" in the variable
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Onyx on Ubuntu 18.0.4
PROBLEM DESCRIPTION:
I have a few docker container that are running asp.net core services. A few of the services connect to a database. I need to be able to manage the database in an environment variable. Currently I have to SSH into the container and manually update the appsettings.json file that holds the connection strings.

In the connection strings, there are "=" signs for the name of the database and the user. But when I try and save the environment variable, I get the error:

The value of an environment variable cannot contain the '=' (equal) sign.

This seems like a bug since I absolutely need those in the environment variable. I can add it when I start the container up in SSH, but then I can not update any of the environment variables since it will still have the bad one in its list.​
STEPS TO REPRODUCE:
Go to settings for a docker container, add an Environment Variable and make sure there is an "=" in the value... Save!​
ACTUAL RESULT:
Receive error: "The value of an environment variable cannot contain the '=' (equal) sign."​
EXPECTED RESULT:
A successful save of the environment variables​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Thank you. This bug was reproduced and submitted as EXTDOCKER-44
 
Fixed as EXTDOCKER-84!

1.4.3 (1 November 2019)
[...]
[-] Entering the equals sign (=) as a part of an environment variable in the Docker extension no longer results in an error. (EXTDOCKER-84)
 
Back
Top