oh-my-posh/website/docs/segments/docker.mdx
Jan De Dobbeleer 5ec65ab373 feat: add docker segment
resolves #3549
2023-03-05 14:45:28 +01:00

42 lines
751 B
Plaintext

---
id: docker
title: Docker
sidebar_label: Docker
---
## What
Display the current Docker context. Will not be active when using the default context.
## Sample Configuration
```json
{
"type": "docker",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#0B59E7",
"template": " \uf308 {{ .Context }} "
}
```
## 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