mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 06:54:05 -08:00
42 lines
810 B
Plaintext
42 lines
810 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
|
|
|
|
import Config from '@site/src/components/Config.js';
|
|
|
|
<Config data={{
|
|
"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
|