2019-01-16 03:36:09 -05:00
|
|
|
---
|
|
|
|
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:
|
2021-01-18 05:43:29 -05:00
|
|
|
-f, --format string Format output using a custom template:
|
|
|
|
'json': Print in JSON format
|
|
|
|
'TEMPLATE': Print output using the given Go template.
|
2022-03-08 08:54:21 -05:00
|
|
|
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
|
2019-01-16 03:36:09 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Inspects one or more contexts.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Inspect a context by name
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2019-01-16 03:36:09 -05:00
|
|
|
$ docker context inspect "local+aks"
|
|
|
|
|
|
|
|
[
|
2020-05-07 07:53:25 -04:00
|
|
|
{
|
|
|
|
"Name": "local+aks",
|
|
|
|
"Metadata": {
|
2022-02-23 12:05:12 -05:00
|
|
|
"Description": "Local Docker Engine",
|
|
|
|
"StackOrchestrator": "swarm"
|
2020-05-07 07:53:25 -04:00
|
|
|
},
|
|
|
|
"Endpoints": {
|
|
|
|
"docker": {
|
|
|
|
"Host": "npipe:////./pipe/docker_engine",
|
|
|
|
"SkipTLSVerify": false
|
|
|
|
}
|
|
|
|
},
|
2022-02-23 12:05:12 -05:00
|
|
|
"TLSMaterial": {},
|
2020-05-07 07:53:25 -04:00
|
|
|
"Storage": {
|
|
|
|
"MetadataPath": "C:\\Users\\simon\\.docker\\contexts\\meta\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee",
|
|
|
|
"TLSPath": "C:\\Users\\simon\\.docker\\contexts\\tls\\cb6d08c0a1bfa5fe6f012e61a442788c00bed93f509141daff05f620fc54ddee"
|
2019-01-16 03:36:09 -05:00
|
|
|
}
|
2020-05-07 07:53:25 -04:00
|
|
|
}
|
2019-01-16 03:36:09 -05:00
|
|
|
]
|
2020-05-07 07:53:25 -04:00
|
|
|
```
|