Docker
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche le contexte Docker actuel. Ne sera pas actif lors de l'utilisation du contexte par défaut.
Exemple de configuration
- json
- yaml
- toml
{
"type": "docker",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#0B59E7",
"template": " {{ .Context }} "
}
type: docker
style: powerline
powerline_symbol:
foreground: "#000000"
background: "#0B59E7"
template: " {{ .Context }} "
type = "docker"
style = "powerline"
powerline_symbol = ""
foreground = "#000000"
background = "#0B59E7"
template = " {{ .Context }} "
Options
| Name | Type | Default | Description |
|---|---|---|---|
display_mode | string | context |
|
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 |
Modèle (info)
modèle par défaut
\uf308 {{ .Context }}
Propriétés
| Name | Type | Description |
|---|---|---|
.Context | string | the current active context |