Managing containerised applications, viewing multi-container logs, and inspecting Docker volumes from headless Linux environments is significantly accelerated using lazydocker, an open-source terminal user interface (TUI) client for Docker and Docker Compose. Minimal cloud server templates and base distribution images (Ubuntu Minimal, Debian, Alpine) do not package lazydocker in standard upstream repositories, triggering the command error: bash: lazydocker: command not found upon invocation.
Install lazydocker via Official Automated Shell Script
The project maintainers provide an automated cross-platform installation script that fetches the appropriate precompiled Go binary for your architecture:
# Run official lazydocker installer script
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update.sh | bash
sudo mv ~/.local/bin/lazydocker /usr/local/bin/
lazydocker --version
Install via GitHub Binary Release
For air-gapped environments or manual binary management:
# Fetch latest release archive from GitHub
LAZYDOCKER_VER=$(curl -s "https://api.github.com/repos/jesseduffield/lazydocker/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${LAZYDOCKER_VER}_Linux_x86_64.tar.gz"
tar -xzf lazydocker.tar.gz lazydocker
sudo install lazydocker /usr/local/bin/
Verify Docker Socket Permissions
Ensure your non-root Linux user account has permissions to communicate with the Docker daemon socket:
- Add your active user to the
dockersecurity group:sudo usermod -aG docker $USER - Apply group changes without rebooting:
newgrp docker - Execute
lazydockerto immediately launch the visual container monitoring dashboard.