DockerCLI/cli
Sebastiaan van Stijn 6ba7de3b5a
cli/command/context: "docker context show": don't validate context
The "docker context show" command is intended to show the currently configured
context. While the context that's configured may not be valid (e.g., in case
an environment variable was set to configure the context, or if the context
was removed from the filesystem), we should still be able to _show_ the
context.

This patch removes the context validation, and instead only shows the context.
This can help in cases where the context is used to (e.g.) set the command-
prompt, but the user removed the context. With this change, the context name
can still be shown, but commands that _require_ the context will still fail.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-28 11:30:35 +01:00
..
command cli/command/context: "docker context show": don't validate context 2022-11-28 11:30:35 +01:00
compose cli/compose/loader: fix error messages, and various tests 2022-11-17 13:17:51 +01:00
config format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
connhelper format code with gofumpt 2022-09-30 11:59:11 +02:00
context cli/context/store: make sure we handle wrapped errors 2022-11-22 12:20:32 +01:00
debug updated vendoring 2017-09-01 19:41:06 -04:00
flags cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
manifest format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
registry/client cli/registry/client: remove unused IsNotFound(), and slight refactor 2022-03-30 20:00:36 +02:00
streams update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
trust format code with gofumpt 2022-09-30 11:59:11 +02:00
version Move versioning variables to a separate package. 2019-01-29 11:26:40 +00:00
winresources Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
cobra.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
cobra_test.go cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go format (GoDoc) comments with Go 1.19 to prepare for go updates 2022-07-19 19:10:16 +02:00
required_test.go cli: remove deprecated io/ioutil 2022-02-25 15:42:19 +01:00