website/docs/segments/cli/docker.mdx
Display the current Docker context. Will not be active when using the default context.
import Config from "@site/src/components/Config.js";
<Config data={{ type: "docker", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#000000", background: "#0B59E7", template: " \uf308 {{ .Context }} ", }} />
| Name | Type | Default | Description |
|---|---|---|---|
display_mode | string | context | <ul><li>files: the segment is only displayed when a file extensions listed is present</li><li>context: displays the segment when a Docker context active</li></ul> |
fetch_context | boolean | true | also fetch the current active Docker context when in the files display mode |
extensions | []string | compose.yml, compose.yaml, docker-compose.yml, docker-compose.yaml, Dockerfile | allows to override the default list of file extensions to validate |
:::note default template
\uf308 {{ .Context }}
:::
| Name | Type | Description |
|---|---|---|
.Context | string | the current active context |