docker context inspect
Display detailed information on one or more contexts
Usage
$ docker context inspect [OPTIONS] [CONTEXT] [CONTEXT...]
Refer to the options section for an overview of available OPTIONS
for this command.
Description
Inspects one or more contexts.
For example uses of this command, refer to the examples section below.
Options
Name, shorthand | Default | Description |
--format , -f |
Format output using a custom template: ‘json’: Print in JSON format ‘TEMPLATE’: Print output using the given Go template. Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
Examples
Inspect a context by name
$ 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"
}
}
]
Parent command
Command | Description |
---|---|
docker context | Manage contexts |
Related commands
Command | Description |
docker context create | Create a context |
docker context export | Export a context to a tar archive FILE or a tar stream on STDOUT. |
docker context import | Import a context from a tar or zip file |
docker context inspect | Display detailed information on one or more contexts |
docker context ls | List contexts |
docker context rm | Remove one or more contexts |
docker context show | Print the name of the current context |
docker context update | Update a context |
docker context use | Set the current docker context |