docker

Escape hatch — run any docker compose subcommand with worktree context pre-filled.

Usage

docktree docker <subcommand> [args...]

The docker command serves as an escape hatch. It allows you to run any raw docker compose subcommand, automatically pre-filling the current worktree's generated project name and active compose files. This is useful for commands, flags, or configurations that Docktree does not wrap directly.

Examples

Run a raw compose ps to inspect container details:

docktree docker ps

Scale a specific service in the current worktree project:

docktree docker scale api=3

Start a service without its dependencies:

docktree docker up --no-deps api

Run any Compose command with custom flags:

docktree docker config --services