mirror of https://github.com/docker/docs.git
Add a note to `env_file` option (#932)
* Add a note to `env_file` option
This commit is contained in:
parent
79bd98b56e
commit
36ac04c1fa
|
@ -276,7 +276,6 @@ The entrypoint can also be a list, in a manner similar to
|
||||||
> clear out any default command on the image - meaning that if there's a `CMD`
|
> clear out any default command on the image - meaning that if there's a `CMD`
|
||||||
> instruction in the Dockerfile, it will be ignored.
|
> instruction in the Dockerfile, it will be ignored.
|
||||||
|
|
||||||
|
|
||||||
### env_file
|
### env_file
|
||||||
|
|
||||||
Add environment variables from a file. Can be a single value or a list.
|
Add environment variables from a file. Can be a single value or a list.
|
||||||
|
@ -304,6 +303,10 @@ beginning with `#` (i.e. comments) are ignored, as are blank lines.
|
||||||
> build. Use the [args](compose-file.md#args) sub-option of `build` to define build-time
|
> build. Use the [args](compose-file.md#args) sub-option of `build` to define build-time
|
||||||
> environment variables.
|
> environment variables.
|
||||||
|
|
||||||
|
The value of `VAL` is used as is and not modified at all. For example if the value is
|
||||||
|
surrounded by quotes (as is often the case of shell variables), the quotes will be
|
||||||
|
included in the value passed to Compose.
|
||||||
|
|
||||||
### environment
|
### environment
|
||||||
|
|
||||||
Add environment variables. You can use either an array or a dictionary. Any
|
Add environment variables. You can use either an array or a dictionary. Any
|
||||||
|
|
Loading…
Reference in New Issue