Created
January 16, 2026 03:17
-
-
Save horaciod/8c13abdcf5449af839db9cd3377a350d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 1. Buscamos todos los archivos 'compose.yaml' desde el directorio actual | |
| # 2. Los pasamos a fzf para generar el menú interactivo | |
| # 3. Guardamos la selección en una variable | |
| SELECCION=$(find "/datos/docker/dockge/dockers2" -type f -name "compose.yaml" | fzf --height 40% --reverse --header "Selecciona un archivo para Lazydocker") | |
| # 4. Verificamos si el usuario seleccionó algo (o si canceló con ESC) | |
| if [ -n "$SELECCION" ]; then | |
| echo "Abriendo lazydocker con: $SELECCION" | |
| lazydocker -f "$SELECCION" | |
| else | |
| echo "Operación cancelada." | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
obtene la lista de dockers corriendo en la carpeta del dockge permite seleccionar el proyecto en lazydoker
con alias tambien se puede hacer