Merge pull request #4642 from desmond3th/docFix

Updated docs for --env-file comments handling
This commit is contained in:
Sebastiaan van Stijn 2023-11-07 10:39:09 +01:00 committed by GitHub
commit fefadb9be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -417,6 +417,8 @@ environment, the variable isn't set in the container.
You can also load the environment variables from a file. This file should use You can also load the environment variables from a file. This file should use
the syntax `<variable>=value` (which sets the variable to the given value) or the syntax `<variable>=value` (which sets the variable to the given value) or
`<variable>` (which takes the value from the local environment), and `#` for comments. `<variable>` (which takes the value from the local environment), and `#` for comments.
Additionally, it's important to note that lines beginning with `#` are treated as line comments
and are ignored, whereas a `#` appearing anywhere else in a line is treated as part of the variable value.
```console ```console
$ cat env.list $ cat env.list