Skip to content

Commit 5c76f7f

Browse files
docs/deprecated: legacy links env vars
Signed-off-by: Albin Kerouanton <[email protected]> Co-authored-by: Sebastiaan van Stijn <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent fcb260d commit 5c76f7f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎docs/deprecated.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The following table provides an overview of the current status of deprecated fea
5353

5454
| Status | Feature | Deprecated | Remove |
5555
|------------|------------------------------------------------------------------------------------------------------------------------------------|------------|--------|
56+
| Deprecated | [Legacy links environment variables](#legacy-links-environment-variables) | v28.4 | v30.0 |
5657
| Deprecated | [Special handling for quoted values for TLS flags](#special-handling-for-quoted-values-for-tls-flags) | v28.4 | v29.0 |
5758
| Deprecated | [Empty/nil fields in image Config from inspect API](#emptynil-fields-in-image-config-from-inspect-api) | v28.3 | v29.0 |
5859
| Deprecated | [Configuration for pushing non-distributable artifacts](#configuration-for-pushing-non-distributable-artifacts) | v28.0 | v29.0 |
@@ -123,6 +124,25 @@ The following table provides an overview of the current status of deprecated fea
123124
| Removed | [`--run` flag on `docker commit`](#--run-flag-on-docker-commit) | v0.10 | v1.13 |
124125
| Removed | [Three arguments form in `docker import`](#three-arguments-form-in-docker-import) | v0.6.7 | v1.12 |
125126

127+
### Legacy links environment variables
128+
129+
**Deprecated in Release: v28.4**
130+
**Disabled by default in Release: v29.0**
131+
**Target For Removal In Release: v30.0**
132+
133+
Containers attached to the default bridge network can specify "legacy links" (e.g.
134+
using `--links` on the CLI) to get access to other containers attached to that
135+
network. The linking container (i.e., the container created with `--links`) automatically
136+
gets environment variables that specify the IP address and port mappings of the linked
137+
container. However, these environment variables are prefixed with the linked
138+
container's names, making them impractical.
139+
140+
Starting with Docker v29.0, these environment variables are no longer set by
141+
default. Users who still depend on them can start Docker Engine with the
142+
environment variable `DOCKER_KEEP_DEPRECATED_LEGACY_LINKS_ENV_VARS=1` set.
143+
144+
Support for legacy links environment variables, as well as the `DOCKER_KEEP_DEPRECATED_LEGACY_LINKS_ENV_VARS`
145+
will be removed in Docker Engine v30.0.
126146

127147
### Special handling for quoted values for TLS flags
128148

0 commit comments

Comments
 (0)