github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/context_ls.md (about)

     1  ---
     2  title: "context ls"
     3  description: "The context ls command description and usage"
     4  keywords: "context, ls"
     5  ---
     6  
     7  # context ls
     8  
     9  ```markdown
    10  Usage:  docker context ls [OPTIONS]
    11  
    12  List contexts
    13  
    14  Aliases:
    15    ls, list
    16  
    17  Options:
    18        --format string   Pretty-print contexts using a Go template
    19                          (default "table")
    20    -q, --quiet           Only show context names
    21  ```
    22  
    23  ## Examples
    24  
    25  Use `docker context ls` to print all contexts. The currently active context is
    26  indicated with an `*`:
    27  
    28  ```bash
    29  NAME                DESCRIPTION                               DOCKER ENDPOINT                      KUBERNETES ENDPOINT   ORCHESTRATOR
    30  default *           Current DOCKER_HOST based configuration   unix:///data/docker/run/docker.sock                                swarm
    31  production                                                    tcp:///prod.corp.example.com:2376
    32  staging                                                       tcp:///stage.corp.example.com:2376
    33  ```