repobenchmarks // docker terminal tui
CLI TOOLS
$ lazydocker

lazydocker Terminal Manager

A simple terminal UI for both Docker and Docker Compose that lets you manage containers, inspect logs, and prune images with single keystrokes.

Author: Jesse Duffield (lazygit author) Language: Go Stars: >36,000
Containers: [●] redis [●] web [●] db Logs: [web] Listening on 0.0.0.0:3000 Stats: CPU: 2.1% | Mem: 85MB / 4GB

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 d to stop a container, r to restart, and b to bulk-prune dangling images and stopped containers.

lazydocker Navigation Model

lazydocker TUI Panel Layout Shows four primary panels: Project Services, Standalone Containers, Images/Volumes, and the central Log/Stats Viewport. [1] Project Services [2] Containers Active Viewport: Streaming Logs & CPU/Mem Stats Press 'e' to edit compose.yml, 'c' to run custom command

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)
⚠ Permission Gotcha: Docker Group Membership

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.