2023-03-05 05:38:56 -08:00
|
|
|
---
|
|
|
|
id: docker
|
|
|
|
title: Docker
|
|
|
|
sidebar_label: Docker
|
|
|
|
---
|
|
|
|
|
|
|
|
## What
|
|
|
|
|
|
|
|
Display the current Docker context. Will not be active when using the default context.
|
|
|
|
|
|
|
|
## Sample Configuration
|
|
|
|
|
2023-03-31 11:55:36 -07:00
|
|
|
import Config from '@site/src/components/Config.js';
|
|
|
|
|
|
|
|
<Config data={{
|
2023-03-05 05:38:56 -08:00
|
|
|
"type": "docker",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#000000",
|
|
|
|
"background": "#0B59E7",
|
|
|
|
"template": " \uf308 {{ .Context }} "
|
2023-03-31 11:55:36 -07:00
|
|
|
}}/>
|
2023-03-05 05:38:56 -08:00
|
|
|
|
|
|
|
## Template ([info][templates])
|
|
|
|
|
|
|
|
:::note default template
|
|
|
|
|
|
|
|
```template
|
|
|
|
\uf308 {{ .Context }}
|
|
|
|
```
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
| Name | Type | Description |
|
|
|
|
| ---------- | -------- | -------------------------- |
|
|
|
|
| `.Context` | `string` | the current active context |
|
|
|
|
|
|
|
|
[go-text-template]: https://golang.org/pkg/text/template/
|
|
|
|
[templates]: /docs/configuration/templates
|