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 [options]

PARAMETERS

--debug
    Logs internal debug information to a file, typically for troubleshooting purposes.

--config
    Specifies an alternative path to the lazydocker configuration file.

--version
    Prints the current version of lazydocker and exits.

-f, --file
    Specifies the path to a docker-compose.yml file. This is useful when the compose file is not in the current directory or has a non-standard name.

-p, --project
    Specifies the name of the Docker-Compose project. Overrides the default project name derived from the directory.

DESCRIPTION

lazydocker is an open-source terminal user interface (TUI) that provides a convenient and interactive way to manage your Docker and Docker-Compose environments. It allows users to effortlessly view logs, inspect resources, restart containers, stop/start services, prune unused items, and much more, all without needing to remember numerous complex Docker CLI commands.

Built for developers and operators who prefer a terminal-centric workflow, lazydocker offers a quick overview and precise control over your Docker setup. Its intuitive interface, rich feature set, and extensive keyboard shortcuts make common Docker operations accessible, efficient, and enjoyable, significantly streamlining container management tasks.

CAVEATS

lazydocker requires the Docker daemon to be running and accessible. While powerful for interactive management, it is not designed for scripting or automated workflows. It primarily offers a visual, interactive layer over existing Docker CLI functionalities, rather than replacing them entirely.

KEYBINDINGS AND NAVIGATION

lazydocker is heavily reliant on keyboard shortcuts for navigation and actions. Users can press ? within the application to view a comprehensive list of available keybindings, which are crucial for efficient use. Common actions include moving between panels (arrow keys), refreshing (r), stopping (s), restarting (R), viewing logs (l), and more.

CONFIGURATION

The behavior and appearance of lazydocker are highly customizable through a YAML configuration file, typically located at ~/.config/lazydocker/config.yml (or platform equivalent). This file allows users to define custom keybindings, themes, startup preferences, and various display options, tailoring the experience to individual needs.

HISTORY

lazydocker was created by Jesse Duffield, a software engineer known for creating other 'lazy' tools like lazygit. It was first released around 2018-2019, quickly gaining traction within the developer community for its efficient terminal-based approach to Docker management. Written in Go, its development has been community-driven, with continuous improvements and feature additions.

SEE ALSO

Copied to clipboard