github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/context_inspect.md (about)

     1  # context inspect
     2  
     3  <!---MARKER_GEN_START-->
     4  Display detailed information on one or more contexts
     5  
     6  ### Options
     7  
     8  | Name             | Type     | Default | Description                                                                                                                                                                                                                                                        |
     9  |:-----------------|:---------|:--------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
    10  | `-f`, `--format` | `string` |         | Format output using a custom template:<br>'json':             Print in JSON format<br>'TEMPLATE':         Print output using the given Go template.<br>Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
    11  
    12  
    13  <!---MARKER_GEN_END-->
    14  
    15  ## Description
    16  
    17  Inspects one or more contexts.
    18  
    19  ## Examples
    20  
    21  ### Inspect a context by name
    22  
    23  ```console
    24  $ docker context inspect "local+aks"
    25  
    26  [
    27    {
    28      "Name": "local+aks",
    29      "Metadata": {
    30        "Description": "Local Docker Engine",
    31        "StackOrchestrator": "swarm"
    32      },
    33      "Endpoints": {
    34        "docker": {
    35          "Host": "npipe:////./pipe/docker_engine",
    36          "SkipTLSVerify": false
    37        }
    38      },
    39      "TLSMaterial": {},
    40      "Storage": {
    41        "MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
    42        "TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
    43      }
    44    }
    45  ]
    46  ```