docker run -e NODE_ENV=production myimage

Category: Docker

docker run -e NODE_ENV=production myimage

Set a single environment variable inside the container

Sets a single environment variable inside the container. Programs inside can read NODE_ENV to get 'production'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.