← 返回命令列表

Linux command

lazydocker 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start lazydocker

lazydocker

Start with a specific Docker config

lazydocker -f [/path/to/config.yml]

Use a specific Docker Compose file

lazydocker -f [docker-compose.yml]

Start without live updates

lazydocker --no-live

说明

lazydocker is a terminal UI for managing Docker containers, images, volumes, and networks. It provides an interactive dashboard that displays real-time container stats, logs, and allows common operations without typing docker commands. The interface is divided into panels: containers, images, volumes, and a main view area. Each panel lists resources with status indicators. Selecting an item shows details, stats, logs, or configuration in the main panel. For containers, you can view live CPU/memory stats, stream logs, attach for interaction, or exec a shell. Bulk operations allow stopping, removing, or restarting multiple containers. Image management includes pulling, building, and pruning. Configuration is stored in ~/.config/lazydocker/config.yml, allowing customization of keybindings, colors, and Docker connection settings. Custom commands can be defined for frequently used operations. The tool works with both Docker and Docker Compose projects, detecting compose files and allowing per-service operations.

参数

-f, --config _file_
Path to a Docker Compose config file or lazydocker config file.
--no-live
Disable live update of container stats.
-v, --version
Print version information.
-d, --debug
Enable debug logging.
-h, --help
Display help.

FAQ

What is the lazydocker command used for?

lazydocker is a terminal UI for managing Docker containers, images, volumes, and networks. It provides an interactive dashboard that displays real-time container stats, logs, and allows common operations without typing docker commands. The interface is divided into panels: containers, images, volumes, and a main view area. Each panel lists resources with status indicators. Selecting an item shows details, stats, logs, or configuration in the main panel. For containers, you can view live CPU/memory stats, stream logs, attach for interaction, or exec a shell. Bulk operations allow stopping, removing, or restarting multiple containers. Image management includes pulling, building, and pruning. Configuration is stored in ~/.config/lazydocker/config.yml, allowing customization of keybindings, colors, and Docker connection settings. Custom commands can be defined for frequently used operations. The tool works with both Docker and Docker Compose projects, detecting compose files and allowing per-service operations.

How do I run a basic lazydocker example?

Run `lazydocker` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --config _file_ do in lazydocker?

Path to a Docker Compose config file or lazydocker config file.