Saltar al contenido principal

Docker

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Qué hace

Muestra el contexto actual de Docker. No estará activo cuando se use el contexto predeterminado.

Configuración de ejemplo

{
"type": "docker",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#0B59E7",
"template": "  {{ .Context }} "
}

Opciones

NameTypeDefaultDescription
display_modestringcontext
  • files: the segment is only displayed when a file extensions listed is present
  • context: displays the segment when a Docker context active
fetch_contextbooleantruealso fetch the current active Docker context when in the files display mode
extensions[]stringcompose.yml, compose.yaml, docker-compose.yml, docker-compose.yaml, Dockerfileallows to override the default list of file extensions to validate

Plantilla (info)

plantilla predeterminada
\uf308 {{ .Context }}

Propiedades

NameTypeDescription
.Contextstringthe current active context