Pass environment variables into the container.
Section: Containers
Set environment variables
bash
bash
docker run -e NODE_ENV=production myapp:latestExplanation
Can be repeated or loaded from a file with `--env-file`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Containers