Interactive CLI to bulk stop & delete Docker containers and images.
klir [global options] <command> [command options]
-h
,--help
Show help-v
,--version
Print version
Interactively stop running containers.
klir stop [OPTIONS]
Options:
-v
,--verbose
Show debug logs
Interactively remove inactive containers.
klir rm [OPTIONS]
Options:
-f
,--force
Allow removal of running containers-v
,--verbose
Show debug logs
Interactively remove orphaned images.
klir rmi [OPTIONS]
Options:
-f
,--force
Allow removal of active images with stopped containers-v
,--verbose
Show debug logs
- Visit the Releases page.
- Download the appropriate binary from the Assets section.
- Run the binary directly.
./klir
# Optional: make it available system-wide
sudo cp ./klir /usr/local/bin
.\klir.exe
Note: To run
klir.exe
system-wide on Windows, add its location to the Environment Variables.
git clone https://github.com/melsonic/klir.git
cd klir
go build -o klir main.go docker_client.go
./klir