Skip to main content

Docker Orphan Sweep

@mgreten/docker-orphan-sweepv2026.06.27.2· 9d 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.

02Models1
@mgreten/docker-orphan-sweepv2026.06.27.2docker_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.
03Previous Versions2
2026.06.27.1Jun 27, 2026
2026.05.19.1May 19, 2026

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

04Stats
A
100 / 100
Downloads
3
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 types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms