mirror of https://github.com/docker/cli.git
50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
---
|
|
title: "context inspect"
|
|
description: "The context inspect command description and usage"
|
|
keywords: "context, inspect"
|
|
---
|
|
|
|
# context inspect
|
|
|
|
```markdown
|
|
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
|
|
|
|
```console
|
|
$ docker context inspect "local+aks"
|
|
|
|
[
|
|
{
|
|
"Name": "local+aks",
|
|
"Metadata": {
|
|
"Description": "Local Docker Engine",
|
|
"StackOrchestrator": "swarm"
|
|
},
|
|
"Endpoints": {
|
|
"docker": {
|
|
"Host": "npipe:////./pipe/docker_engine",
|
|
"SkipTLSVerify": false
|
|
}
|
|
},
|
|
"TLSMaterial": {},
|
|
"Storage": {
|
|
"MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
|
|
"TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
|
|
}
|
|
}
|
|
]
|
|
```
|