LinuxCommandLibrary

lazydocker

Manage Docker and Docker Compose with terminal UI

TLDR

Open Lazydocker

$ lazydocker
copy

Display the current default configuration
$ lazydocker --config
copy

Run Lazydocker in debug mode
$ lazydocker --debug
copy

Specify an alternate Docker Compose file
$ lazydocker --file [path/to/docker-compose.yml]
copy

Display help
$ lazydocker --help
copy

Display version
$ lazydocker --version
copy

SYNOPSIS

lazydocker [flags]

PARAMETERS

-d, --docker-path=string
    Path to Docker binary (default: docker)

-h, --help
    Show help

--log-level=string
    Log level: debug, info, warn, error, fatal, panic (default: info)

--server
    Start in server mode (experimental)

-V, --version
    Print version information

DESCRIPTION

Lazydocker is an open-source, terminal-based user interface (TUI) designed to simplify Docker container management. It provides a dashboard-like view of running containers, images, volumes, networks, and Docker Compose projects. Users can start, stop, restart, logs, exec into containers, and more using intuitive keyboard shortcuts and mouse support.

Built with Go, it leverages the Docker CLI under the hood, making it lightweight and fast. The interface is divided into panels: main container list on the left, logs bottom, and side panels for details. Navigation uses Vim-like keys (h/j/k/l), with searchable lists and bulk actions.

Ideal for developers and sysadmins preferring terminal over web UIs like Portainer. Supports Docker Compose seamlessly, auto-refreshing stats like CPU/memory usage. Customizable via YAML config for themes, layouts, and commands. No daemon required beyond Docker itself.

CAVEATS

Requires Docker daemon running and docker CLI installed. Mouse support enhances usability but keyboard-only works. Not compatible with non-Docker runtimes like Podman without tweaks. High container counts may impact terminal performance.

INSTALLATION

curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
Or via package managers: brew, scoop, AUR.

KEYBINDINGS

h/j/k/l: navigate.
r: restart, e: exec, l: logs, space: toggle select.
?: help menu, q: quit.

CONFIGURATION

Edit ~/.config/lazydocker/config.yml for custom layouts, colors, commands.

HISTORY

Created by Jesse Duffield in 2019 as a simpler alternative to tools like ctop. First release v0.1.0 on GitHub. Actively maintained with regular updates for Docker API changes, Compose v2, and UI improvements. Over 20k stars, used in production terminals worldwide.

SEE ALSO

Copied to clipboard