Post

Lazydocker - A Simplified Docker Management Tool

Lazydocker - A Simplified Docker Management Tool

Lazydocker will bring your productivity to next level. Similar to

With few keyboard strokes you get in one second an overview of running containers (Logs, CPU/Memory Usage, Env, Config, Top running processes). With one click or keystroke you can view the logs in an container, open a shell or stop/start a container.

LazyDocker: A Simplified Docker Management Tool

If you’re a developer working with Docker, you know how powerful yet sometimes cumbersome it can be to manage containers, networks, and volumes from the command line. That’s where LazyDocker comes in — a simple, user-friendly terminal UI for managing Docker containers.

What is LazyDocker?

LazyDocker is an open-source tool that provides a CLI-based GUI for Docker management. It allows you to interact with your Docker environment more efficiently, offering a cleaner and faster way to view and manage containers, logs, volumes, networks, and even Docker Compose services, all within the terminal.

Key Features of LazyDocker:

  • Container Management: View and manage running containers, start/stop/restart them, and monitor their stats in real-time.
  • Log Monitoring: Easily tail the logs of any container with a simple command.
  • Volume and Network Inspection: View all volumes and networks, helping you better understand how your Docker setup is structured.
  • Docker Compose Support: Directly manage and interact with services defined in docker-compose.yml.
  • Cross-Platform Support: LazyDocker works on Linux, macOS, and Windows.

Why Use LazyDocker?

  • Time Saver: Provides a fast and easy way to interact with Docker without needing to memorize long commands.
  • No GUI Required: It’s a terminal-based UI, which means it works even on servers or headless systems where a GUI might not be available.
  • User-Friendly: It is a lightweight and intuitive tool designed for Docker users who want to spend less time managing and more time developing.

LazyDocker vs Portainer

FeatureLazyDockerPortainer
TypeCLI-based Docker Management ToolWeb-based Docker and Kubernetes Management
InterfaceTerminal (TUI - Text User Interface)Web Interface (GUI)
Ease of UseRequires familiarity with CLIIntuitive and beginner-friendly GUI
InstallationLightweight, single binaryRequires web server setup and container
Resource UsageMinimalModerate (due to web interface overhead)
FeaturesFocused on Docker container managementBroad management for Docker & Kubernetes
Real-Time MonitoringYesYes
Logs and StatsYes, integrated into the TUIYes, with rich visualization
Multi-Node SupportNoYes
User ManagementNot availableRole-based access control
CustomizationLimitedHigh (integrates with plugins/extensions)
Use CaseDevelopers working in terminalAdmins managing multiple servers and users
Learning CurveLow for CLI usersLow for GUI users
Kubernetes SupportNoYes
Open SourceYesCommunity edition is open source
PlatformTerminal-basedBrowser-based

LazyDocker: Best for developers who prefer managing Docker in a terminal environment with minimal resource usage.

Portainer: Ideal for teams or administrators managing multiple Docker/Kubernetes environments with an emphasis on user management and ease of use through a GUI.

Installing LazyDocker

Linux:

1
curl -s https://api.github.com/repos/jesseduffield/lazydocker/releases/latest | jq -r .assets[0].browser_download_url | xargs wget -O lazydocker.deb && sudo dpkg -i lazydocker.deb

Arch/Manjaro:

1
yay -S lazydocker

With Docker

1
2
3
4
docker run --rm -it -v \
/var/run/docker.sock:/var/run/docker.sock \
-v /yourpath:/.config/jesseduffield/lazydocker \
lazyteam/lazydocker

MacOS:

1
brew install lazydocker

Using Lazydocker

Start Lazydocker

1
lazydocker

The Terminal UI looks like a Dashboard Lazydocker Terminal UI Navigate with Keybindings or with mouse. Lazydocker Terminal UI Lazydocker Terminal UI Lazydocker Terminal UI Lazydocker Terminal UI To get a list with all commands: Select an Object like a running container then press x: Lazydocker Terminal UI

To open a shell in a running container: selected the Container, press x, press E

To switch window use Tab or Shift-Tab or cursor left/right

Lazydocker Terminal UI This is much faster than

1
docker exec -it <container_name_or_id> /bin/bash

Image Config Lazydocker Terminal UI Image Commands Lazydocker Terminal UI Volume Commands Lazydocker Terminal UI Network Commands Lazydocker Terminal UI

This post is licensed under CC BY 4.0 by the author.