A fast, practical Docker project manager with a CLI and a small TUI dashboard.
This README is the functional user guide. For internal code structure and implementation details, see docs/DEV-ARCHITECTURE.md.
- Zero-config discovery: finds projects on any machine, from Docker's own labels
- Shows running, partially running, and installed-but-stopped containers
- Manages both
docker composeprojects and plaindocker runcontainers - Fast CLI: add, remove, list, start, stop, restart, update, status, logs
- Detailed status for a single project (services + URLs)
- Interactive TUI dashboard with spinner + live operation logs
- Docker daemon management (start, stop, status)
- Runs on macOS, Linux, and Raspberry Pi (arm64 / armv7)
- Docker Engine or Docker Desktop
- Docker Compose v2 (
docker compose) or v1 (docker-compose) — auto-detected
On the machine itself (compiles if Go is available, otherwise uses a prebuilt binary):
./install.shDeploying to a Raspberry Pi from your dev machine (no Go needed on the Pi):
make release # builds every target
scp docker-manager-linux-arm64 install.sh pi@raspberry:~/
ssh pi@raspberry "./install.sh" # picks the matching binaryinstall.sh detects OS/architecture (darwin/linux, arm64/amd64/arm),
installs into /usr/local/bin (override with PREFIX=), and warns if the Docker
daemon is unreachable.
# Global status
docker-manager status
# Registered projects from config
docker-manager list
# Add/remove explicit project entries
docker-manager add ~/docker/docker-pbwww
docker-manager remove pbwww
# Detailed status for one project
docker-manager status pbwww
# Start (build + up)
docker-manager start pbwww
# Stop (down + remove containers)
docker-manager stop pbwww
# Fast restart (no rebuild)
docker-manager restart pbwww nginx
# Update images already used by the project, then recreate
docker-manager update pbwww
# Logs (use -f for follow)
docker-manager logs pbwww
docker-manager logs pbwww nginx -f
# Docker daemon management
docker-manager daemon status # Check daemon status
docker-manager daemon start # Start Docker daemon
docker-manager daemon stop # Stop Docker daemondocker-manager dashboardKeys:
↑/↓ork/j: navigates: startd: stop (composedown, ordocker stopfor standalone containers)r: restartu: update images (pull + recreate)R: reload the inventoryq: quit
During long operations (image pull/build/up/down), the dashboard shows:
- an animated spinner
- live output lines from Docker Compose
- final success/error status
Status markers:
| Marker | Meaning |
|---|---|
▶ Running |
all containers up |
◐ Partiel |
some containers up, some stopped |
⏸ Installé, arrêté |
containers exist on the machine but are stopped |
⏹ Stopped |
project found on disk, no container created |
👻 |
not in config — located through Docker |
⬦ |
plain container, not managed by docker-compose |
Discovery combines two independent sources and merges them, so moving the binary to another machine requires no configuration at all.
1. Docker's own inventory (docker ps -a). Compose stamps every container it
creates with com.docker.compose.project, ...project.working_dir and
...project.config_files. Reading those labels tells Docker Manager which
projects exist, where their compose file lives, and how many containers are
running versus stopped. Stopped containers are included — that is how
"installed but not started" shows up. Containers started with docker run have
no such labels and are listed individually.
2. A filesystem scan of root directories (2 levels deep), which also catches projects whose containers have never been created:
DOCKER_MANAGER_ROOTenvironment variablerootslist in~/.docker-manager/projects.ymlrootin~/.docker-manager/projects.yml(backward compatibility)- built-in defaults when nothing above exists on this machine:
~/docker,~/dockers,~/stacks,~/containers,~/compose,~,/opt/docker,/opt/stacks,/opt/containers,/srv/docker,/srv,/volume1/docker,/home/pi/docker
A folder is a project if it contains docker-compose.yml, docker-compose.yaml,
compose.yml or compose.yaml. The docker- prefix is no longer required.
Hidden folders, node_modules and similar are skipped.
Entries are merged by path first, then by name (tolerating the docker- prefix).
Roots that do not exist on the current machine are silently ignored, and if a
copied config points only at missing paths, the built-in defaults take over.
docker-manager update <project> runs compose pull followed by compose up -d.
It only refreshes images the project already references — it never downloads an
image that is not already part of the project. For a standalone container, the
image is pulled and you are told to recreate the container to apply it.
docker-manager status <project> prints local URLs derived from published ports.
Example output:
URLs:
- nginx => http://localhost:80
- open-webui => http://localhost:3000
At first launch, Docker Manager creates a default config file at:
~/.docker-manager/projects.yml
This file contains:
roots:
- /home/you/docker
projects: {}Edit ~/.docker-manager/projects.yml:
roots:
- /path/to/docker/projects
- /another/pathTemporary override from shell:
export DOCKER_MANAGER_ROOT=/path/to/your/docker/projects
docker-manager statusDOCKER_MANAGER_ROOT overrides config roots for that command session.
Register a specific compose directory directly:
docker-manager add /path/to/docker-myproject
docker-manager remove myprojectThis writes entries under projects: in ~/.docker-manager/projects.yml.
If a project has a .env file with nested variable interpolation (for example ${BASE}/docker), Docker Manager resolves it through bash before running Docker Compose.
This supports setups where .env is a symlink to a shared secrets file.
Technical architecture and contributor notes live in docs/DEV-ARCHITECTURE.md.
make build
make run
make test
make cleanVersion is defined in a single source of truth in main.go:
const Version = "1.4.0"Use docker-manager --version to display it.
MIT