whaledrive 0.0.1

A simple cli utility to download docker images and create ext4 .img files from them.
Documentation

WhaleDrive

A simple cli utility to download docker images and create ext4 .img files from them.

This utility outputs human readable JSON to stdout. This allows the user to easily pipe the output to other tools like jq.

Installation

You can install the utility with cargo:

cargo install whaledrive

Usage

The whaledrive utility helps you manage container images efficiently with various commands and global options.

Global Options

-b, --base-path <path>

Specify the folder where this utility will store data. The default is the data folder in the current working directory.

Commands

cargo whaledrive info <image> [--os <os>] [--architecture <arch>]
cargo whaledrive build <image> [--os <os>] [--architecture <arch>]
cargo whaledrive images [--os <os>] [--platform <platform>]
cargo whaledrive rm <image> [--prune] [--os <os>] [--architecture <arch>]
cargo whaledrive prune

Examples

Get info about an Ubuntu image:

cargo whaledrive info ubuntu:20.04

Build an image for arm64:

cargo whaledrive build myimage --architecture arm64

List images for a specific OS:

cargo whaledrive images --os linux

Remove an image and clean up unused layers:

cargo whaledrive rm myimage --prune