stop

Stop running containers of the current worktree without removing them.

Usage

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.

Flags

FlagDescription
--dry-runShow what would be stopped without making any changes

Arguments

ArgumentDescription
service...Optional name of one or more specific services to stop (stops all by default)

Examples

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