Closed inteltiger closed 2 years ago
https://docs.docker.com/engine/reference/commandline/run/ said
You can also use variables that you’ve exported to your local environment:
export VAR1=value1 export VAR2=value2
$ docker run --env VAR1 --env VAR2 ubuntu env | grep VAR
VAR1=value1 VAR2=value2
Very nice, I like the use of the shorthand notation to get the DOCKER_RUN_ARGS in there without the extra parsing
https://docs.docker.com/engine/reference/commandline/run/ said
You can also use variables that you’ve exported to your local environment:
export VAR1=value1 export VAR2=value2
$ docker run --env VAR1 --env VAR2 ubuntu env | grep VAR
VAR1=value1 VAR2=value2