Skip to main content

Docker Orphan Sweep

@mgreten/docker-orphan-sweepv2026.05.19.1· 1d agoMODELS
01README

Find and remove orphaned Docker Compose containers whose git worktree directory no longer exists. Cross-references live compose projects against git worktree paths. Works with any repo that uses worktrees + compose.

02Release Notes

Initial release: find and remove orphaned Docker Compose containers from dead git worktrees.

03Models1
@mgreten/docker-orphan-sweepv2026.05.19.1docker_orphan_sweep.ts

Global Arguments

ArgumentTypeDescription
repoPathstringPath to the git repository that manages worktrees.
containerPrefix?stringOptional prefix filter for docker container names.
fn scan()
Discover all Docker Compose projects, cross-reference each against
fn sweep(dryRun: boolean)
Remove orphaned Docker Compose containers whose git worktree
ArgumentTypeDescription
dryRunbooleanWhen true (default), only reports what would be removed without

Resources

orphanScan(30d)— Scan result showing compose projects, worktrees, and orphan details.
sweepResult(30d)— Result of an orphan sweep including per-container removal status.
04Stats
A
100 / 100
Downloads
0
Archive size
7.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms