IMLC.ME
Search…
en-US
How to set environment variable to a Docker container
Use -e parameter:
1
docker run -e CUSTOM_ENV_VAR="Hello, world" busybox /bin/sh -c "echo \$CUSTOM_ENV_VAR"
Copied!
Last modified 1yr ago
Copy link