Managing Docker from the command line means memorizing dozens of commands. docker ps, docker logs -f, docker stats, docker system prune... lazydocker puts everything in one terminal UI - navigate with arrow keys, hit Enter to execute.
Terminal UI for Docker
View containers, images, volumes, and logs in a single pane. No more switching between terminal tabs or memorizing flags.
The lazydocker Interface
lazydocker gives you a birds-eye view of your entire Docker environment with three main panels:
lazydocker showing containers, resource stats, environment variables, and live logs in a single view
Key Features
Container Management
Start, stop, restart, remove containers with single keystrokes. View stats, env vars, and config.
Log Viewing
Stream logs in real-time with auto-scroll. Search through logs, filter by time, and follow multiple containers.
Resource Stats
Live CPU, memory, and network usage per container. Spot resource hogs instantly without docker stats.
Image Cleanup
Prune unused images, volumes, and networks. See disk usage and reclaim space with one key press.
Practical Examples
Installing lazydocker is simple. Choose your method:
# Install on macOS
brew install lazydocker
# Install on Linux (one-liner)
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
# Or run via Docker (no install needed)
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.config/lazydocker:/.config/jesseduffield/lazydocker \
lazyteam/lazydocker
Once installed, just run:
lazydocker
Why Developers Love It
- โ No More Command Memorization - All actions are visible in the UI with keyboard shortcuts shown
- โ Real-time Monitoring - Watch container stats update live without running separate commands
- โ Instant Log Access - Jump to any container's logs immediately, with search and follow
- โ Works Everywhere - Terminal-based means it works over SSH, in tmux, on any machine
- โ Zero Config - Just run it. Connects to your Docker daemon automatically
Cheatsheet
Essential keyboard shortcuts for navigating lazydocker:
| Shortcut | Action | Context |
|---|---|---|
j/k or โ/โ |
Navigate up/down | Global |
h/l or โ/โ |
Switch panels | Global |
Enter |
Focus/select item | Global |
d |
Remove/delete | Containers, Images, Volumes |
s |
Stop container | Containers |
r |
Restart container | Containers |
a |
Attach/exec into container | Containers |
L |
View logs fullscreen | Containers |
/ |
Search/filter | Logs, Lists |
p |
Prune unused | Images, Volumes |
x |
Open command menu | Global |
q |
Quit lazydocker | Global |
Pro Tips
Level up your lazydocker workflow with these power features:
Custom Commands
Create custom commands in ~/.config/lazydocker/config.yml. Add frequently used docker commands as shortcuts.
Remote Docker Hosts
Set DOCKER_HOST environment variable to manage remote Docker daemons. Works great for managing production containers over SSH.
Bulk Operations
Press b to toggle bulk select mode. Select multiple containers, then apply actions to all at once.
Graph Mode
Press e to toggle graph view for CPU and memory stats. Great for spotting trends and anomalies over time.
Docker Compose Integration
lazydocker auto-detects docker-compose projects. Run it from your project directory to see grouped services with their relationships.
Getting Started
-
1
Install lazydocker
Use Homebrew on Mac, the install script on Linux, or run via Docker
-
2
Start Docker
Make sure Docker daemon is running. lazydocker connects to the socket automatically.
-
3
Run lazydocker
Type
lazydockerin your terminal. The UI appears immediately. -
4
Navigate and Manage
Use arrow keys to navigate, Enter to select, and press
?for help
Try lazydocker Now
Stop juggling terminal tabs. Manage your entire Docker environment from one beautiful TUI.
View on GitHub