CLI
protect image

protect image

Manage the images.

protect image <COMMAND>

Commands:

  • pull Pull an image into the cache.
  • import Import an image into the cache.
  • remove Remove an image from the cache.
  • list List cached images.

pull

Pull an image into the cache.

protect image pull [OPTIONS] <IMAGE>

Arguments:

  • <IMAGE> Image name

Options:

  • -s, --image-format <IMAGE_FORMAT> Image format [default: squashfs] [possible values: squashfs, erofs, tar, directory]
  • -n, --no-update Don’t update from registry
  • -o, --overwrite-cache Overwrite image cache

import

Import an image into the cache.

protect image import [OPTIONS] --digest <DIGEST> --image <IMAGE>

Options:

  • -d, --digest <DIGEST> Image digest
  • -n, --image <IMAGE> Image name
  • -s, --image-format <IMAGE_FORMAT> Image format [default: squashfs] [possible values: squashfs, erofs, tar, directory]
  • -o, --overwrite-cache Overwrite image cache
  • -i <INPUT_FILE> Input image tar [default: /dev/stdin]

remove

Remove an image from the cache

protect image remove [OPTIONS] <DIGEST>

Arguments:

  • <DIGEST> Image digest

Options:

  • -s, --image-format <IMAGE_FORMAT> Image format [default: squashfs] [possible values: squashfs, erofs, tar, directory]

list

List cached images

protect image list [OPTIONS]

Options:

  • -o, --output <OUTPUT> Output format [default: table] [possible values: table, json, json-pretty, jsonl, yaml, key-value, simple]
Last updated on