1
0
mirror of https://github.com/docker/cli.git synced 2025-07-05 13:21:14 +03:00
Files
cli/docs/reference/commandline/context_inspect.md
Sebastiaan van Stijn 803b9071e7 docs: fix, and touch-up "docker context" docs
Using `/var/run/docker.sock` as docker host is invalid, and causes
an error, so adding `unix://` to it.

In addition, we document the name of the context to go after the
options, so change the order in the examples.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-07 13:53:25 +02:00

1.3 KiB

title, description, keywords
title description keywords
context inspect The context inspect command description and usage context, inspect

context inspect

Usage:  docker context inspect [OPTIONS] [CONTEXT] [CONTEXT...]

Display detailed information on one or more contexts

Options:
  -f, --format string   Format the output using the given Go template

Description

Inspects one or more contexts.

Examples

Inspect a context by name

$ docker context inspect "local+aks"

[
  {
    "Name": "local+aks",
    "Metadata": {
      "Description": "Local Docker Engine + Azure AKS endpoint",
      "StackOrchestrator": "kubernetes"
    },
    "Endpoints": {
      "docker": {
        "Host": "npipe:////./pipe/docker_engine",
        "SkipTLSVerify": false
      },
      "kubernetes": {
        "Host": "https://simon-aks-***.hcp.uksouth.azmk8s.io:443",
        "SkipTLSVerify": false,
        "DefaultNamespace": "default"
      }
    },
    "TLSMaterial": {
      "kubernetes": [
        "ca.pem",
        "cert.pem",
        "key.pem"
      ]
    },
    "Storage": {
      "MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
      "TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
    }
  }
]