Back to Resources Resource

lazydocker - Docker Management Made Simple

A simple terminal UI for Docker. View containers, images, volumes, and logs without memorizing docker commands.

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 CPU: 12% | MEM: 2.1GB Containers web-app Up 2h postgres-db Up 2h redis-cache Up 2h nginx-proxy Up 2h worker-1 Exited Images node:18-alpine postgres:15 redis:7-alpine nginx:latest Volumes postgres_data redis_data nginx-proxy nginx:latest | Ports: 80:80, 443:443 CPU 2.3% MEM 128MB / 512MB NET RX: 1.2GB | TX: 890MB ID: a7f3d2c1e9b8 Created: 2 hours ago Status: Running (healthy) Environment Variables NGINX_HOST =example.com NGINX_PORT =80 SSL_CERT_PATH =/etc/nginx/certs Logs Following... 2024-01-15 10:23:45 [notice] nginx/1.25.3 2024-01-15 10:23:45 [notice] start worker processes 2024-01-15 10:24:12 192.168.1.1 - GET / 200 0.002s 2024-01-15 10:24:15 192.168.1.1 - GET /api/health 200 0.001s 2024-01-15 10:24:18 192.168.1.2 - GET /api/users 304 0.015s 2024-01-15 10:24:22 192.168.1.1 - POST /api/data 201 0.089s 2024-01-15 10:24:25 192.168.1.3 - GET /missing 404 0.003s

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. 1

    Install lazydocker

    Use Homebrew on Mac, the install script on Linux, or run via Docker

  2. 2

    Start Docker

    Make sure Docker daemon is running. lazydocker connects to the socket automatically.

  3. 3

    Run lazydocker

    Type lazydocker in your terminal. The UI appears immediately.

  4. 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

Explore More Resources