mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Update environment-variables.md
Anchor #env-file does not exist. Correct anchor is #envfile
This commit is contained in:
@@ -39,7 +39,7 @@ The value of the `DEBUG` variable in the container will be taken from the value
|
||||
|
||||
## The “env_file” configuration option
|
||||
|
||||
You can pass multiple environment variables from an external file through to a service's containers with the ['env_file' option](compose-file.md#env-file), just like with `docker run --env-file=FILE ...`:
|
||||
You can pass multiple environment variables from an external file through to a service's containers with the ['env_file' option](compose-file.md#envfile), just like with `docker run --env-file=FILE ...`:
|
||||
|
||||
web:
|
||||
env_file:
|
||||
@@ -95,4 +95,4 @@ Several environment variables are available for you to configure the Docker Comp
|
||||
|
||||
## Environment variables created by links
|
||||
|
||||
When using the ['links' option](compose-file.md#links) in a [v1 Compose file](compose-file.md#version-1), environment variables will be created for each link. They are documented in the [Link environment variables reference](link-env-deprecated.md). Please note, however, that these variables are deprecated - you should just use the link alias as a hostname instead.
|
||||
When using the ['links' option](compose-file.md#links) in a [v1 Compose file](compose-file.md#version-1), environment variables will be created for each link. They are documented in the [Link environment variables reference](link-env-deprecated.md). Please note, however, that these variables are deprecated - you should just use the link alias as a hostname instead.
|
||||
|
||||
Reference in New Issue
Block a user