Linux Terminal Glossary
›
Docker
docker run -e MY_VAR=value nginx
Category:
Docker
docker run -e MY_VAR=value nginx
Copy command
Run container with an environment variable set
Sets an environment variable inside the container. Programs in the container can read MY_VAR to get 'value'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.