Lazydocker

Lazydocker in Action (small footprint)

Lazydocker in Action (small footprint)

Eine einfache Umsetzung per Docker Image in Kombination mit einem Alias könnte z.B. wie folgt umgesetzt werden.

Docker Image Kommando zur Nutzung von Lazydocker
docker run --rm -it \
   -v /var/run/docker.sock:/var/run/docker.sock \
   -v /yourpath:/.config/jesseduffield/lazydocker \
   lazyteam/lazydocker

Am Besten das Ganze Kommando als Alias in die Konfiguration der Shell verpacken (hier Bash).

echo "alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.bashrc

Bitte daran denken, den entsprechenden Pfad zur LazyDocker Config anzupassen.

Natürlich könnte man LazyDocker auch als Docker Compose Lösung ausrollen:

LazyDocker Compose Datei: https://github.com/jesseduffield/lazydocker/blob/master/docker-compose.yml

version: '3'
services:
  lazydocker:
    build:
      context: https://github.com/jesseduffield/lazydocker.git
      args:
        BASE_IMAGE_BUILDER: golang
        GOARCH: amd64
        GOARM:
    image: lazyteam/lazydocker
    container_name: lazydocker
    stdin_open: true
    tty: true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config:/.config/jesseduffield/lazydocker

LazyDocker Links/Infos: