W3cubDocs

/Docker 19

docker context inspect

Description

Display detailed information on one or more contexts

Usage

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

Options

Name, shorthand Default Description
--format , -f Format the output using the given Go template

Parent command

Command Description
docker context Manage contexts
Command Description
docker context create Create a context
docker context export Export a context to a tar or kubeconfig file
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 update Update a context
docker context use Set the current docker context

Extended 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"
        }
    }
]

© 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/engine/reference/commandline/context_inspect/