Environment Variables (-e)
DK · Run Optionsdocker run -e <KEY>=<value> <image>
docker run --env-file <file> <image>docker run -e NODE_ENV=production -e DB_HOST=db myapp:1.0
docker run --env-file .env myapp:1.0Note Using --env-file keeps secrets out of your shell history and process list. Each line in the file should be KEY=value with no quotes needed around the value.