Declare env variable which value include space for docker/docker-compose -


i have env variable value this:
test_var=the value

do knowns whether legal? should place " around value interpreted needed in docker? thanks

edit: quotation marks not solution part of val see reference here.

lets see result running following compose file:

version: "3"  services:     service:         image: alpine         command: env         env_file: env.conf 

env.conf:

test_var1=the value test_var2="the value2" 

docker-compose up result:

service_1 | path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin service_1  | test_var2="the value2" service_1  | test_var1=the value service_1  | home=/root 

therefore, legal have spaces in env value.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -