Skip to content

Commit 9f4b74c

Browse files
authored
Clarify that run -e DEBUG might read values from .env file (#20771)
1 parent 581430f commit 9f4b74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/compose/environment-variables/set-environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ $ docker compose run -e DEBUG=1 web python console.py
103103

104104
### Additional information
105105

106-
- You can also pass a variable from the shell by not giving it a value:
106+
- You can also pass a variable from the shell or your environment files by not giving it a value:
107107

108108
```console
109109
$ docker compose run -e DEBUG web python console.py
110110
```
111111

112-
The value of the `DEBUG` variable in the container is taken from the value for the same variable in the shell in which Compose is run.
112+
The value of the `DEBUG` variable in the container is taken from the value for the same variable in the shell in which Compose is run or from the environment files.
113113

114114
## Further resources
115115

0 commit comments

Comments
 (0)