Skip to content

Conversation

crazy-max
Copy link
Member

Related to https://github.com/docker/setup-buildx-action/actions/runs/4270612172/jobs/7434517458#step:4:13

Looks like docker context show is only available since Docker 23: docker/cli#3567.

What's odd is the command exists on Docker Desktop with Docker CLI 20.10.22 ??

$ docker --version
Docker version 20.10.22, build 3a2c30b
$ docker context --help
Manage contexts

Usage:
  docker context [command]

Available Commands:
  create      Create new context
  export      Export a context to a tar or kubeconfig file
  import      Import a context from a tar or zip file
  inspect     Display detailed information on one or more contexts
  list        List available contexts
  rm          Remove one or more contexts
  show        Print the current context
  update      Update a context
  use         Set the default context

Flags:
  -h, --help   Help for context

Use "docker context [command] --help" for more information about a command.

Do you have an idea why @thaJeztah? Maybe compose-cli handles it?

@thaJeztah
Copy link
Member

What's odd is the command exists on Docker Desktop with Docker CLI 20.10.22 ??

Yeah, it was one of the things added in "compose-cli", which is wrapping the actual cli on desktop 😔
There's other things as well that work slightly different in that case

@crazy-max crazy-max marked this pull request as ready for review February 25, 2023 16:49
@crazy-max crazy-max merged commit f78f708 into docker:main Feb 25, 2023
@crazy-max crazy-max deleted the fix-docker-context branch February 25, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants