You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deprecated.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,9 +197,31 @@ to decrypt the private key, and store it un-encrypted to continue using it.
197
197
### Kubernetes stack and context support
198
198
199
199
**Deprecated in Release: v20.10**
200
+
**Removed in Release: v21.xx**
201
+
202
+
Following the deprecation of [Compose on Kubernetes](https://github.com/docker/compose-on-kubernetes),
203
+
support for Kubernetes in the `stack` and `context` commands has been removed from
204
+
the cli, and options related to this functionality are now either ignored, or may
205
+
produce an error.
206
+
207
+
The following command-line flags are removed from the `docker context` subcommands:
208
+
209
+
-`--default-stack-orchestrator` - swarm is now the only (and default) orchestrator for stacks.
210
+
-`--kubernetes` - the kubernetes endpoint can no longer be stored in `docker context`.
211
+
-`--kubeconfig` - exporting a context as a kubeconfig file is no longer supported.
212
+
213
+
The output produced by the `docker context inspect` subcommand no longer contains
214
+
information about `StackOrchestrator` and `Kubernetes` endpoints for new contexts.
215
+
216
+
The following command-line flags are removed from the `docker stack` subcommands:
217
+
218
+
-`--kubeconfig` - using a kubeconfig file as context is no longer supported.
219
+
-`--namespace` - configuring the kubernetes namespace for stacks is no longer supported.
220
+
-`--orchestrator` - swarm is now the only (and default) orchestrator for stacks.
200
221
201
-
Following the deprecation of [Compose on Kubernetes](https://github.com/docker/compose-on-kubernetes), support for
202
-
Kubernetes in the `stack` and `context` commands in the docker CLI is now marked as deprecated as well.
222
+
The `DOCKER_STACK_ORCHESTRATOR`, `DOCKER_ORCHESTRATOR`, and `KUBECONFIG` environment
223
+
variables, as well as the `stackOrchestrator` option in the `~/.docker/config.json`
224
+
cli configuration file are no longer used, and ignored.
203
225
204
226
### Pulling images from non-compliant image registries
Copy file name to clipboardExpand all lines: docs/reference/commandline/cli.md
+9-19Lines changed: 9 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,18 +65,17 @@ the [installation](https://docs.docker.com/install/) instructions for your opera
65
65
The following list of environment variables are supported by the `docker` command
|`DOCKER_API_VERSION`| Override the negotiated API version to use for debugging (e.g. `1.19`) |
71
71
|`DOCKER_CERT_PATH`| Location of your authentication keys. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
72
-
|`DOCKER_CONFIG`| The location of your client configuration files. |
73
-
|`DOCKER_CONTENT_TRUST_SERVER`| The URL of the Notary server to use. Defaults to the same URL as the registry. |
74
-
|`DOCKER_CONTENT_TRUST`| When set Docker uses notary to sign and verify images. Equates to `--disable-content-trust=false` for build, create, pull, push, run. |
75
-
|`DOCKER_CONTEXT`| Name of the `docker context` to use (overrides `DOCKER_HOST` env var and default context set with `docker context use`) |
76
-
|`DOCKER_DEFAULT_PLATFORM`| Default platform for commands that take the `--platform` flag. |
72
+
|`DOCKER_CONFIG`| The location of your client configuration files. |
73
+
|`DOCKER_CONTENT_TRUST_SERVER`| The URL of the Notary server to use. Defaults to the same URL as the registry. |
74
+
|`DOCKER_CONTENT_TRUST`| When set Docker uses notary to sign and verify images. Equates to `--disable-content-trust=false` for build, create, pull, push, run. |
75
+
|`DOCKER_CONTEXT`| Name of the `docker context` to use (overrides `DOCKER_HOST` env var and default context set with `docker context use`) |
76
+
|`DOCKER_DEFAULT_PLATFORM`| Default platform for commands that take the `--platform` flag. |
77
77
|`DOCKER_HIDE_LEGACY_COMMANDS`| When set, Docker hides "legacy" top-level commands (such as `docker rm`, and `docker pull`) in `docker help` output, and only `Management commands` per object-type (e.g., `docker container`) are printed. This may become the default in a future release, at which point this environment-variable is removed. |
78
-
|`DOCKER_HOST`| Daemon socket to connect to. |
79
-
|`DOCKER_STACK_ORCHESTRATOR`| Configure the default orchestrator to use when using `docker stack` management commands. |
78
+
|`DOCKER_HOST`| Daemon socket to connect to. |
80
79
|`DOCKER_TLS_VERIFY`| When set Docker uses TLS and verifies the remote. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
81
80
|`BUILDKIT_PROGRESS`| Set type of progress output (`auto`, `plain`, `tty`) when [building](build.md) with [BuildKit backend](../builder.md#buildkit). Use plain to show container output (default `auto`). |
82
81
@@ -192,14 +191,6 @@ for a specific registry. For more information, see the
192
191
[**Credential helpers** section in the `docker login` documentation](login.md#credential-helpers)
193
192
194
193
195
-
### Orchestrator options for docker stacks
196
-
197
-
The property `stackOrchestrator` specifies the default orchestrator to use when
198
-
running `docker stack` management commands. Valid values are `"swarm"`,
199
-
`"kubernetes"`, and `"all"`. This property can be overridden with the
200
-
`DOCKER_STACK_ORCHESTRATOR` environment variable, or the `--orchestrator` flag.
201
-
202
-
203
194
### Automatic proxy configuration for containers
204
195
205
196
The property `proxies` specifies proxy environment variables to be automatically
0 commit comments