Skip to main content

Docker

What

Display the current Docker context. Will not be active when using the default context.

Sample Configuration

{
"type": "docker",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#0B59E7",
"template": "  {{ .Context }} "
}

Properties

NameTypeDefaultDescription
display_modestringcontext
  • files: the segment is only displayed when a file extensions listed is present
  • context: displays the segment when a Docker context active
fetch_contextbooleantruealso fetch the current active Docker context when in the files display mode
extensions[]stringdocker-compose.yml, docker-compose.yaml, Dockerfileallows to override the default list of file extensions to validate

Template (info)

default template
\uf308 {{ .Context }}

Properties

NameTypeDescription
.Contextstringthe current active context