Skip to content

Commit

Permalink
Merge pull request docker#4642 from desmond3th/docFix
Browse files Browse the repository at this point in the history
Updated docs for --env-file comments handling
  • Loading branch information
thaJeztah authored Nov 7, 2023
2 parents 0ef1269 + efc9236 commit fefadb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/commandline/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.
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
$ cat env.list
Expand Down

0 comments on commit fefadb9

Please sign in to comment.