A toolkit for common Docker tasks
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker_kit-0.2.0.tar.gz
(13.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docker_kit-0.2.0.tar.gz.
File metadata
- Download URL: docker_kit-0.2.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a38c41e1203e12c97e835dc3f017ddb743318bcb7ca3c4b8f7adb498fd5a6b
|
|
| MD5 |
e99781aadd1e2fb8e0f996c0a72ecfb1
|
|
| BLAKE2b-256 |
263a4f21bbbcec9bb39afbd42ccaffa5be9efd51e8726fff3075a83b4d3dffc8
|
File details
Details for the file docker_kit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: docker_kit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0566c59076c3ab684dfea3ce1120c0c27c2038f6882e6621a523c4a210727165
|
|
| MD5 |
0477b6bced1b937a6647cb2fa478656e
|
|
| BLAKE2b-256 |
30b8acf0fca569e828bddbd9730140ef04e03aefe03e87d46a9e18168c1d3aba
|