Your live, beautiful Docker Compose monitor CLI tool.
Project description
DockedUp ๐ณ
htop for your Docker Compose stack.
DockedUp is an interactive command-line tool that provides a live, beautiful, and human-friendly monitor for your Docker containers. It's designed for developers and DevOps engineers who want a quick, real-time overview of their containerized environments without the noise of docker ps and the hassle of switching terminals.
Key Features
- Real-Time Monitoring: Live-updating data for status, uptime, CPU, and Memory.
- Compose Project Grouping: Automatically groups containers by their
docker-composeproject. - Emoji + Colors: Clearly shows container status (
Up,Down,Restarting) and health (Healthy,Unhealthy) with visual cues. - Interactive Controls: Select containers with arrow keys and use hotkeys to:
lโ View live logs (docker logs -f).rโ Restart a container (with confirmation).xโ Stop a container (with confirmation).sโ Open a shell (/bin/sh) inside a container.
- PyPI Package: Simple one-liner installation.
Problem It Solves
docker stats and docker ps are functional, but fall short when you need to:
- Monitor container status, health, and resource usage in one unified view.
- Act on a container (view logs, restart, shell in) without breaking your workflow.
- Understand a complex
docker-composestack at a glance.
DockedUp solves these problems by presenting your container information in a continuously updating, color-coded, and interactive dashboard right in your terminal.
Installation
DockedUp is available on PyPI. It is highly recommended to install CLI tools in an isolated environment using pipx.
pipx install dockedup
Alternatively, you can use pip:
pip install dockedup
From Source
git clone https://github.com/anilrajrimal1/dockedup.git
cd dockedup
pip install -e .
๐ Requirements
- Python 3.10+
- Docker Engine (local or remote)
- Terminal with color support
Usage
Basic Usage
# Start DockedUp with default settings
dockedup
# Custom refresh rate (0.5 seconds)
dockedup --refresh 0.5
# Enable debug mode
dockedup --debug
Command Line Options
dockedup [OPTIONS]
Options:
-r, --refresh FLOAT UI refresh rate in seconds (0.1-60.0) [default: 1.0]
-d, --debug Enable debug mode with verbose logging
-v, --version Show version and exit
-h, --help Show help message and exit
Interactive Controls
Once DockedUp is running, use these keyboard shortcuts:
| Key | Action |
|---|---|
โ/โ or k/j |
Navigate up/down |
l |
View live logs |
r |
Restart container (with confirmation) |
s |
Open shell session |
x |
Stop container (with confirmation) |
? |
Show help screen |
q or Ctrl+C |
Quit DockedUp |
๐ฅ๏ธ Interface
DockedUp displays containers grouped by Docker Compose project:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DockedUp - Interactive Docker Compose Monitor โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ Project: anil-demo โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Container โ Status โ Uptime โ Health โ CPU % โ Memory โ
โ anil-demo-web โ โ
Up โ 2h 15m โ ๐ข Healthyโ 15.2% โ 245M/1G โ
โ anil-demo-db โ โ
Up โ 2h 15m โ โ โ 5.1% โ 180M/2G โ
โ anil-demo-redis โ โ Down โ โ โ โ โ โ โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Q)uit | โ/โ Navigate | L)ogs | R)estart | S)hell | X) Stop | ?) Help
Status Icons
- โ Up - Container is running
- โ Down - Container is stopped/exited
- ๐ Restarting - Container is restarting
- โธ๏ธ Paused - Container is paused
- ๐ Dead - Container is dead
- ๐ฆ Created - Container created but not started
Health Icons
- ๐ข Healthy - Health check passing
- ๐ด Unhealthy - Health check failing
- ๐ก Starting - Health check starting
- โ No health check defined
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
DOCKER_HOST |
Docker daemon socket | unix:///var/run/docker.sock |
DOCKER_CERT_PATH |
Path to Docker certificates | โ |
DOCKER_TLS_VERIFY |
Enable TLS verification | 0 |
Docker Context
DockedUp respects your Docker context configuration:
# Use a specific Docker context
docker context use myremote
dockedup
# Or temporarily override
DOCKER_HOST=tcp://remote-docker:2376 dockedup
Troubleshooting
Docker Connection Issues
Error: Failed to connect to Docker
-
Docker Desktop not running (macOS/Windows):
# Start Docker Desktop, then test: docker ps
-
Permission denied (Linux):
# Add user to docker group: sudo usermod -aG docker $USER # Then logout and login again
-
Docker daemon not running (Linux):
# Check status: sudo systemctl status docker # Start if needed: sudo systemctl start docker
Performance Issues
If DockedUp feels slow:
# Reduce refresh rate
dockedup --refresh 2.0
# Check Docker daemon performance
docker system df
docker system prune # Clean up unused resources
Debug Mode
Enable debug logging to troubleshoot issues:
dockedup --debug
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Developer's Guide
Interested in contributing or running the project locally?
Prerequisites:
- Git
- Python 3.10+
- Poetry
Setup:
- Clone the repository:
git clone https://github.com/anilrajrimal1/dockedup.git cd dockedup
- Install dependencies:
poetry install - Run the application locally:
poetry run dockedup
- Run the tests:
poetry run pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Inspired by htop and lazydocker
- Built with Rich and Typer
Made with โค๏ธ by Anil for the Docker community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dockedup-1.0.0.tar.gz.
File metadata
- Download URL: dockedup-1.0.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827c2fe5f2e90de1f5a22d38abc19f2731e1a9a50dc2ee7cee4c8980cd335e28
|
|
| MD5 |
c672f71b7c397363a5d4f7ad5b374c48
|
|
| BLAKE2b-256 |
5d24bf731f46cf3cbf3522a9096563fb6d8673e613069751aa711d35a6a466ba
|
File details
Details for the file dockedup-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dockedup-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d82dd6aaa71353cf1c1c01d2a8a04ee5ee87cc09f6c97f45091ce9fa0b554f
|
|
| MD5 |
b77442d692b9fce532cdb267fcbc5a6d
|
|
| BLAKE2b-256 |
18f4eed3b3aaace0cf3defaa90678a92f8017accfb0883e39ff87db8d07ee1ef
|