Stop running containers of the current worktree without removing them.
docktree stop [options] [service...]
The stop command stops the running containers of the current worktree's Compose project. Unlike down, it does not remove the containers or networks — it simply halts them, preserving their state for a quick restart.
| Flag | Description |
|---|---|
--dry-run | Show what would be stopped without making any changes |
| Argument | Description |
|---|---|
service... | Optional name of one or more specific services to stop (stops all by default) |
Stop all services in the current worktree:
docktree stop
Stop only the api and worker services:
docktree stop api worker
Preview which containers would be stopped:
docktree stop --dry-run