github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/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 ```console 29 $ docker context ls 30 31 NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR 32 default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm 33 production tcp:///prod.corp.example.com:2376 34 staging tcp:///stage.corp.example.com:2376 35 ```