How to set an environment variable in a running docker container

前端 未结 11 1158
难免孤独
难免孤独 2020-11-29 23:28

If I have a docker container that I started a while back, what is the best way to set an environment variable in that running container? I set an environment variable initia

11条回答
  •  独厮守ぢ
    2020-11-30 00:13

    Use export VAR=Value

    Then type printenv in terminal to validate it is set correctly.

提交回复
热议问题