Managing Docker from the command line typically requires remembering dozens of commands: docker ps, docker logs -f --tail 100 <container_id>, docker stats, and docker system prune. If you run multiple Compose stacks, switching between logs and restarting containers is tedious. lazydocker (by Jesse Duffield) brings the keyboard-driven workflow of lazygit to Docker containers, services, images, and volumes.
Key Features
- Instant Log Streaming: Select any container or entire Compose service with arrow keys to immediately view colorized, scrolling stdout/stderr logs.
- Live Resource Metrics: Visual ASCII graphs for CPU and memory usage rendered per container in real time.
- One-Key Bulk Actions: Press
dto stop a container,rto restart, andbto bulk-prune dangling images and stopped containers.
lazydocker Navigation Model
lazydocker Essential Keybindings
| Keybinding | Action |
|---|---|
| [ / ] | Switch tabs (Logs / Stats / Env / Top / Config) |
| r | Restart focused container or service |
| d | Stop container or down Compose stack |
| b | Open bulk maintenance menu (Prune images, volumes) |
If lazydocker fails on launch with Got permission denied while trying to connect to the Docker daemon socket, your Linux user account is not a member of the docker system group. Add your user with sudo usermod -aG docker $USER and reload your session with newgrp docker instead of running lazydocker with sudo.
Learn more on the official lazydocker GitHub repository.
Discussion & Issues
Comments
Post a Comment