🐋 安装最新的 lazydocker 在 Debian 上

The lazier way to manage everything Docker

Latest Version: 0.24.1+ (November 2024)
← 返回首页

什么是 lazydocker?

lazydocker is a simple terminal UI for both Docker and docker-compose created by Jesse Duffield (same author as lazygit). It provides a unified interface to manage your Docker environment, view logs, monitor metrics, and perform common operations without memorizing complex commands. With over 45k GitHub stars, it's the most popular Docker TUI available.

😤 Docker Pain Points Solved: Tired of juggling multiple terminal windows for different containers? Fed up with memorizing docker commands? Frustrated with tracking container states across services? lazydocker puts everything you need in one intuitive interface.
🚀 Why Latest Versions Matter: lazydocker is actively developed with frequent releases containing new Docker features support, performance improvements, and enhanced container management capabilities. The latest versions include better metrics visualization, improved log handling, and enhanced docker-compose integration.

⚡ Key Features of lazydocker

📊 Visual Overview

See the state of your entire Docker environment at a glance. Containers, images, volumes, and networks in one unified view.

📈 Real-time Metrics

ASCII graphs showing CPU, memory, and network usage. Customizable metrics to monitor exactly what you need for your containers.

📝 Log Management

View logs for containers and services with filtering, following, and search capabilities. No more juggling multiple terminal windows.

🔧 Container Operations

Start, stop, restart, remove, and rebuild containers with single keystrokes. Attach to containers for interactive debugging.

🗂️ Image Management

View image layers, ancestry, and disk usage. Prune unused images, containers, and volumes to reclaim disk space.

🐭 Mouse Support

Full mouse support for clicking, scrolling, and selecting. Keyboard shortcuts for power users, mouse for convenience.

🆕 What's New in lazydocker 0.24.1+

📦 从 debian.griffo.io 安装

步骤 1:添加仓库

curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list sudo apt update
curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/debian.griffo.io.list apt update

步骤 2:安装 lazydocker

# Install latest lazydocker sudo apt install lazydocker # Verify installation lazydocker --version
# Install latest lazydocker apt install lazydocker # Verify installation lazydocker --version

🎯 基本使用示例

Launch lazydocker:

# Start lazydocker lazydocker # Create convenient alias echo "alias lzd='lazydocker'" >> ~/.bashrc source ~/.bashrc # Use the alias lzd

Essential keybindings:

# Navigation j/k or ↑/↓ - Move up/down h/l or ←/→ - Switch between panels tab - Next panel # Container operations r - Restart container s - Stop container d - Remove container e - Exec into container m - View logs # System operations p - Prune unused containers/images R - Rebuild service (docker-compose) u - Refresh/update view

Advanced workflows:

# View container stats and metrics # Navigate to containers panel, select container, view graphs # Bulk operations # Select multiple containers and perform operations # Custom commands # Configure custom commands in config file # Log filtering # Use search functionality in log view

🚀 为什么选择 debian.griffo.io?

📊 Repository Comparison:
  • Official Debian: Available but often outdated versions
  • Manual Installation: Requires Go toolchain or manual binary management
  • debian.griffo.io: Latest version (0.24.1+) with automatic updates

📦 软件包构建仓库

Debian 软件包在此 GitHub 仓库中自动构建和维护:

🔗 相关软件包

也可从 debian.griffo.io 获取:

🎯 Perfect for: DevOps engineers managing Docker environments, developers working with microservices, anyone frustrated with complex Docker commands, and teams needing visual container management.