From 9a30c4c212d7f979b6f2f6d67bd2b0997255e540 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Tue, 3 Sep 2024 15:33:41 +0200 Subject: [PATCH] Clarify that `run -e DEBUG` might read values from `.env` file --- .../environment-variables/set-environment-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/compose/environment-variables/set-environment-variables.md b/content/compose/environment-variables/set-environment-variables.md index 3336ce8fc779..c93159311746 100644 --- a/content/compose/environment-variables/set-environment-variables.md +++ b/content/compose/environment-variables/set-environment-variables.md @@ -103,13 +103,13 @@ $ docker compose run -e DEBUG=1 web python console.py ### Additional information -- You can also pass a variable from the shell by not giving it a value: +- You can also pass a variable from the shell or your environment files by not giving it a value: ```console $ docker compose run -e DEBUG web python console.py ``` -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. +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. ## Further resources