Skip to main content

docker-kit

A toolkit for common Docker tasks.

Installation

uvx docker-kit --help

Or install globally:

uv tool install docker-kit

Commands

remove-orphans

Remove stopped containers with hex suffixes (orphaned compose containers).

# Dry run (default) - shows what would be deleted
uvx docker-kit remove-orphans

# Actually delete the containers
uvx docker-kit remove-orphans --apply
uvx docker-kit remove-orphans -a

# Also remove anonymous volumes
uvx docker-kit remove-orphans --apply --volumes
uvx docker-kit remove-orphans -av

# Custom hex suffix lengths (default: 12)
uvx docker-kit remove-orphans --hex-lens 12,64

nuke-kids

Shorthand for remove-orphans --apply --volumes.

uvx docker-kit nuke-kids

Development

# Install dependencies
uv sync

# Run linting
uv run ruff format .
uv run ruff check .

# Run type checking
uv run pyright

# Run tests
uv run pytest -v

License

MIT

Metadata

Release files for docker-kit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-kit 0.2.0
File Size Uploaded
docker_kit-0.2.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-kit 0.2.0
File Interpreter ABI Platform
docker_kit-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.2 kB

Release files / docker_kit-0.2.0.tar.gz

Download URL docker_kit-0.2.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
83a38c41e1203e12c97e835dc3f017ddb743318bcb7ca3c4b8f7adb498fd5a6b
BLAKE2b-256 checksum
How to use checksums
263a4f21bbbcec9bb39afbd42ccaffa5be9efd51e8726fff3075a83b4d3dffc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release files / docker_kit-0.2.0-py3-none-any.whl

Download URL docker_kit-0.2.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0566c59076c3ab684dfea3ce1120c0c27c2038f6882e6621a523c4a210727165
BLAKE2b-256 checksum
How to use checksums
30b8acf0fca569e828bddbd9730140ef04e03aefe03e87d46a9e18168c1d3aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page