Docker
What
Display the current Docker context. Will not be active when using the default context.
Sample Configuration
- json
- yaml
- toml
{
"type": "docker",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#0B59E7",
"template": " {{ .Context }} "
}
type: docker
style: powerline
powerline_symbol:
foreground: "#000000"
background: "#0B59E7"
template: " {{ .Context }} "
type = "docker"
style = "powerline"
powerline_symbol = ""
foreground = "#000000"
background = "#0B59E7"
template = " {{ .Context }} "
Properties
Name | Type | Default | Description |
---|---|---|---|
display_mode | string | context |
|
fetch_context | boolean | true | also fetch the current active Docker context when in the files display mode |
extensions | []string | docker-compose.yml, docker-compose.yaml, Dockerfile | allows to override the default list of file extensions to validate |
Template (info)
default template
\uf308 {{ .Context }}
Properties
Name | Type | Description |
---|---|---|
.Context | string | the current active context |