oh-my-posh/website/docs/segments/cli/docker.mdx

42 lines
810 B
Plaintext
Raw Normal View History

---
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={{
"type": "docker",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#0B59E7",
"template": " \uf308 {{ .Context }} "
2023-03-31 11:55:36 -07: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