Workaround to docker run “--env-file” supplied file not being evaluated as expected

后端 未结 6 1295
你的背包
你的背包 2021-02-05 23:58

My current setup for running a docker container is on the lines of this:

  1. I\'ve got a main.env file:
# Main
export PRIVATE_IP=\\`echo          


        
6条回答
  •  醉梦人生
    2021-02-06 00:13

    creating an ENV file that is nothing more than key/value pairs can be processed in normal shell commands and appended to the environment. Look at the bash -a pragma.

提交回复
热议问题