mirror of https://github.com/docker/cli.git
docs: remove deprecated orchestrator flags
Removes the flags that have been deprecated or removed; - --default-stack-orchestrator - --kubernetes - --kubeconfig - --namespace - --orchestrator Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
869370a3fe
commit
039018b6d3
|
@ -21,14 +21,6 @@ cert Path to TLS certificate file
|
||||||
key Path to TLS key file
|
key Path to TLS key file
|
||||||
skip-tls-verify Skip TLS certificate validation
|
skip-tls-verify Skip TLS certificate validation
|
||||||
|
|
||||||
Kubernetes endpoint config:
|
|
||||||
|
|
||||||
NAME DESCRIPTION
|
|
||||||
from Copy Kubernetes endpoint configuration from an existing context
|
|
||||||
config-file Path to a Kubernetes config file
|
|
||||||
context-override Overrides the context set in the kubernetes config file
|
|
||||||
namespace-override Overrides the namespace set in the kubernetes config file
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
$ docker context create my-context \
|
$ docker context create my-context \
|
||||||
|
@ -36,15 +28,9 @@ $ docker context create my-context \
|
||||||
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
|
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--default-stack-orchestrator string Default orchestrator for
|
|
||||||
stack operations to use with
|
|
||||||
this context
|
|
||||||
(swarm|kubernetes|all)
|
|
||||||
--description string Description of the context
|
--description string Description of the context
|
||||||
--docker stringToString set the docker endpoint
|
--docker stringToString set the docker endpoint
|
||||||
(default [])
|
(default [])
|
||||||
--kubernetes stringToString set the kubernetes endpoint
|
|
||||||
(default [])
|
|
||||||
--from string Create the context from an existing context
|
--from string Create the context from an existing context
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -55,17 +41,15 @@ configuration to connect to different clusters or single nodes.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Create a context with a docker and kubernetes endpoint
|
### Create a context with a docker endpoint
|
||||||
|
|
||||||
To create a context from scratch provide the docker and, if required,
|
To create a context from scratch provide the docker and, if required,
|
||||||
kubernetes options. The example below creates the context `my-context`
|
kubernetes options. The example below creates the context `my-context`
|
||||||
with a docker endpoint of `/var/run/docker.sock` and a kubernetes configuration
|
with a docker endpoint of `/var/run/docker.sock`:
|
||||||
sourced from the file `/home/me/my-kube-config`:
|
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker context create \
|
$ docker context create \
|
||||||
--docker host=unix:///var/run/docker.sock \
|
--docker host=unix:///var/run/docker.sock \
|
||||||
--kubernetes config-file=/home/me/my-kube-config \
|
|
||||||
my-context
|
my-context
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -92,32 +76,18 @@ $ source my-setup-script.sh
|
||||||
$ docker context create my-context
|
$ docker context create my-context
|
||||||
```
|
```
|
||||||
|
|
||||||
To source only the `docker` endpoint configuration from an existing context
|
To source the `docker` endpoint configuration from an existing context
|
||||||
use the `--docker from=<context-name>` option. The example below creates a
|
use the `--docker from=<context-name>` option. The example below creates a
|
||||||
new context named `my-context` using the docker endpoint configuration from
|
new context named `my-context` using the docker endpoint configuration from
|
||||||
the existing context `existing-context` and a kubernetes configuration sourced
|
the existing context `existing-context`:
|
||||||
from the file `/home/me/my-kube-config`:
|
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker context create \
|
$ docker context create \
|
||||||
--docker from=existing-context \
|
--docker from=existing-context \
|
||||||
--kubernetes config-file=/home/me/my-kube-config \
|
|
||||||
my-context
|
my-context
|
||||||
```
|
```
|
||||||
|
|
||||||
To source only the `kubernetes` configuration from an existing context use the
|
Docker endpoints configurations, as well as the description can be modified with
|
||||||
`--kubernetes from=<context-name>` option. The example below creates a new
|
`docker context update`.
|
||||||
context named `my-context` using the kuberentes configuration from the existing
|
|
||||||
context `existing-context` and a docker endpoint of `/var/run/docker.sock`:
|
|
||||||
|
|
||||||
```console
|
|
||||||
$ docker context create \
|
|
||||||
--docker host=unix:///var/run/docker.sock \
|
|
||||||
--kubernetes from=existing-context \
|
|
||||||
my-context
|
|
||||||
```
|
|
||||||
|
|
||||||
Docker and Kubernetes endpoints configurations, as well as default stack
|
|
||||||
orchestrator and description can be modified with `docker context update`.
|
|
||||||
|
|
||||||
Refer to the [`docker context update` reference](context_update.md) for details.
|
Refer to the [`docker context update` reference](context_update.md) for details.
|
||||||
|
|
|
@ -9,15 +9,16 @@ keywords: "context, export"
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker context export [OPTIONS] CONTEXT [FILE|-]
|
Usage: docker context export [OPTIONS] CONTEXT [FILE|-]
|
||||||
|
|
||||||
Export a context to a tar or kubeconfig file
|
Export a context to a tar archive FILE or a tar stream on STDOUT.
|
||||||
|
|
||||||
Options:
|
|
||||||
--kubeconfig Export as a kubeconfig file
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
Exports a context in a file that can then be used with `docker context import`
|
Exports a context to a file that can then be used with `docker context import`.
|
||||||
(or with `kubectl` if `--kubeconfig` is set). Default output filename is
|
|
||||||
`<CONTEXT>.dockercontext`, or `<CONTEXT>.kubeconfig` if `--kubeconfig` is set.
|
The default output filename is `<CONTEXT>.dockercontext`. To export to `STDOUT`,
|
||||||
To export to `STDOUT`, you can run `docker context export my-context -`.
|
use `-` as filename, for example:
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ docker context export my-context -
|
||||||
|
```
|
||||||
|
|
|
@ -30,27 +30,16 @@ $ docker context inspect "local+aks"
|
||||||
{
|
{
|
||||||
"Name": "local+aks",
|
"Name": "local+aks",
|
||||||
"Metadata": {
|
"Metadata": {
|
||||||
"Description": "Local Docker Engine + Azure AKS endpoint",
|
"Description": "Local Docker Engine",
|
||||||
"StackOrchestrator": "kubernetes"
|
"StackOrchestrator": "swarm"
|
||||||
},
|
},
|
||||||
"Endpoints": {
|
"Endpoints": {
|
||||||
"docker": {
|
"docker": {
|
||||||
"Host": "npipe:////./pipe/docker_engine",
|
"Host": "npipe:////./pipe/docker_engine",
|
||||||
"SkipTLSVerify": false
|
"SkipTLSVerify": false
|
||||||
},
|
|
||||||
"kubernetes": {
|
|
||||||
"Host": "https://simon-aks-***.hcp.uksouth.azmk8s.io:443",
|
|
||||||
"SkipTLSVerify": false,
|
|
||||||
"DefaultNamespace": "default"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TLSMaterial": {
|
"TLSMaterial": {},
|
||||||
"kubernetes": [
|
|
||||||
"ca.pem",
|
|
||||||
"cert.pem",
|
|
||||||
"key.pem"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Storage": {
|
"Storage": {
|
||||||
"MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
|
"MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
|
||||||
"TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
|
"TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
|
||||||
|
|
|
@ -21,28 +21,14 @@ cert Path to TLS certificate file
|
||||||
key Path to TLS key file
|
key Path to TLS key file
|
||||||
skip-tls-verify Skip TLS certificate validation
|
skip-tls-verify Skip TLS certificate validation
|
||||||
|
|
||||||
Kubernetes endpoint config:
|
|
||||||
|
|
||||||
NAME DESCRIPTION
|
|
||||||
from Copy Kubernetes endpoint configuration from an existing context
|
|
||||||
config-file Path to a Kubernetes config file
|
|
||||||
context-override Overrides the context set in the kubernetes config file
|
|
||||||
namespace-override Overrides the namespace set in the kubernetes config file
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
$ docker context update my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
|
$ docker context update my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--default-stack-orchestrator string Default orchestrator for
|
|
||||||
stack operations to use with
|
|
||||||
this context
|
|
||||||
(swarm|kubernetes|all)
|
|
||||||
--description string Description of the context
|
--description string Description of the context
|
||||||
--docker stringToString set the docker endpoint
|
--docker stringToString set the docker endpoint
|
||||||
(default [])
|
(default [])
|
||||||
--kubernetes stringToString set the kubernetes endpoint
|
|
||||||
(default [])
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -13,8 +13,6 @@ Manage Docker stacks
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
deploy Deploy a new stack or update an existing stack
|
deploy Deploy a new stack or update an existing stack
|
||||||
|
|
|
@ -17,9 +17,6 @@ Aliases:
|
||||||
Options:
|
Options:
|
||||||
-c, --compose-file strings Path to a Compose file, or "-" to read from stdin
|
-c, --compose-file strings Path to a Compose file, or "-" to read from stdin
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--namespace string Kubernetes namespace to use
|
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
--prune Prune services that are no longer referenced
|
--prune Prune services that are no longer referenced
|
||||||
--resolve-image string Query the registry to resolve image digest and supported platforms
|
--resolve-image string Query the registry to resolve image digest and supported platforms
|
||||||
("always"|"changed"|"never") (default "always")
|
("always"|"changed"|"never") (default "always")
|
||||||
|
|
|
@ -17,9 +17,6 @@ Aliases:
|
||||||
Options:
|
Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--format string Pretty-print stacks using a Go template
|
--format string Pretty-print stacks using a Go template
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--namespace string Kubernetes namespace to use
|
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -15,11 +15,8 @@ Options:
|
||||||
-f, --filter filter Filter output based on conditions provided
|
-f, --filter filter Filter output based on conditions provided
|
||||||
--format string Pretty-print tasks using a Go template
|
--format string Pretty-print tasks using a Go template
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--namespace string Kubernetes namespace to use
|
|
||||||
--no-resolve Do not map IDs to Names
|
--no-resolve Do not map IDs to Names
|
||||||
--no-trunc Do not truncate output
|
--no-trunc Do not truncate output
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
-q, --quiet Only display task IDs
|
-q, --quiet Only display task IDs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,6 @@ Aliases:
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--namespace string Kubernetes namespace to use
|
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
@ -36,7 +33,8 @@ Remove the stack from the swarm.
|
||||||
|
|
||||||
### Remove a stack
|
### Remove a stack
|
||||||
|
|
||||||
This will remove the stack with the name `myapp`. Services, networks, and secrets associated with the stack will be removed.
|
This will remove the stack with the name `myapp`. Services, networks, and secrets
|
||||||
|
associated with the stack will be removed.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker stack rm myapp
|
$ docker stack rm myapp
|
||||||
|
@ -50,7 +48,8 @@ Removing network myapp_frontend
|
||||||
|
|
||||||
### Remove multiple stacks
|
### Remove multiple stacks
|
||||||
|
|
||||||
This will remove all the specified stacks, `myapp` and `vossibility`. Services, networks, and secrets associated with all the specified stacks will be removed.
|
This will remove all the specified stacks, `myapp` and `vossibility`. Services,
|
||||||
|
networks, and secrets associated with all the specified stacks will be removed.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker stack rm myapp vossibility
|
$ docker stack rm myapp vossibility
|
||||||
|
|
|
@ -15,9 +15,6 @@ Options:
|
||||||
-f, --filter filter Filter output based on conditions provided
|
-f, --filter filter Filter output based on conditions provided
|
||||||
--format string Pretty-print services using a Go template
|
--format string Pretty-print services using a Go template
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
--namespace string Kubernetes namespace to use
|
|
||||||
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
|
||||||
-q, --quiet Only display IDs
|
-q, --quiet Only display IDs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ Show the Docker version information
|
||||||
Options:
|
Options:
|
||||||
-f, --format string Format the output using the given Go template
|
-f, --format string Format the output using the given Go template
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--kubeconfig string Kubernetes config file
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
Loading…
Reference in New Issue