Skip to content

melsonic/klir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klir

Interactive CLI to bulk stop & delete Docker containers and images.

Usage

klir [global options] <command> [command options]

Global Options

  • -h, --help   Show help
  • -v, --version Print version

Commands

klir stop

Interactively stop running containers.

klir stop [OPTIONS]

Options:

  • -v, --verbose Show debug logs

klir rm

Interactively remove inactive containers.

klir rm [OPTIONS]

Options:

  • -f, --force  Allow removal of running containers
  • -v, --verbose Show debug logs

klir rmi

Interactively remove orphaned images.

klir rmi [OPTIONS]

Options:

  • -f, --force  Allow removal of active images with stopped containers
  • -v, --verbose Show debug logs

Installation

Option 1: Download Binary

  • Visit the Releases page.
  • Download the appropriate binary from the Assets section.
  • Run the binary directly.
Linux / macOS (Terminal)
./klir

# Optional: make it available system-wide
sudo cp ./klir /usr/local/bin
Windows (Command Prompt)
.\klir.exe

Note: To run klir.exe system-wide on Windows, add its location to the Environment Variables.

Option 2: Build from Source

  • Ensure Golang & Docker is installed on your system.
  • Run the following commands in order
    git clone https://github.com/melsonic/klir.git
    cd klir
    go build -o klir main.go docker_client.go
    ./klir

Result

description

About

Interactive CLI tool to perform BULK stop & delete operations on docker containers and images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages