Skip to main content
Version: 1.0.0

blobber pull

Download an image from an OCI registry to a local directory.

Synopsis

blobber pull <reference> <directory> [flags]

Description

Downloads all files from an OCI registry image and extracts them to a local directory. By default, fails if any files already exist in the destination.

Arguments

ArgumentRequiredDescription
referenceYesOCI image reference (e.g., ghcr.io/org/repo:tag)
directoryYesDestination directory path

Flags

FlagTypeDefaultDescription
--overwriteboolfalseReplace existing files instead of failing
--insecureboolfalseAllow connections without TLS
-v, --verboseboolfalseEnable debug logging

Output

Silent on success. Errors are printed to stderr.

Exit Codes

CodeDescription
0Success
1Error (not found, auth failed, conflicts, etc.)

Examples

Pull to a new directory:

blobber pull ghcr.io/myorg/config:v1 ./config

Pull and overwrite existing files:

blobber pull --overwrite ghcr.io/myorg/config:v1 ./config

Pull from an insecure registry:

blobber pull --insecure localhost:5000/test:v1 ./output

Conflict Detection

Before downloading, blobber checks for file conflicts. If files would be overwritten:

Error: 3 files already exist (use --overwrite to replace)

With --overwrite, conflicting files are removed before extraction.

Notes

  • Creates the destination directory if it doesn't exist
  • Preserves file permissions from the archive
  • Preserves symbolic links
  • Applies extraction safety limits (see below)

Extraction Limits

Blobber enforces safety limits to prevent resource exhaustion:

LimitValue
Maximum files100,000
Maximum total size10 GB
Maximum file size1 GB

See Also