Skip to content

Commands Overview

These flags apply to all commands:

Flag Env var Default Description
--config string IMGLIFE_CONFIG imglife.yaml Path to the configuration file
--log-format string IMGLIFE_LOG_FORMAT json Log format: json or text
--log-level string IMGLIFE_LOGLEVEL warn Log level: debug, info, warn, error
--check — — Validate config without executing

Example:

Terminal window
# Validate config
imglife --config myconfig.yaml --check
# Debug output with text logs
imglife --log-format text --log-level debug sync --dry-run
Command Description
sync Mirror upstream images to your private registry
build Generate Dockerfiles and build base images
cleanup Apply retention policy and delete stale tags
scan Find, check and register the images a project uses
status Generate a Markdown status report
check Verify an applicative image’s base is current
images List images in the registry
app list List scanned projects
app purge Purge the records of projects that are gone
eol update Refresh EOL data from endoflife.date
config validate Validate the configuration and print a summary
version Print imglife version
completion Generate shell completion scripts
imglife sync → mirror upstream images
imglife build → build base images from mirrors
imglife eol update → refresh EOL cache (optional)
imglife status → generate README
imglife cleanup → apply retention policy

When a CI job is canceled (SIGTERM) or on Ctrl+C, sync, build and cleanup stop cleanly: no new copy, build, deletion or hook starts, the running docker command or hook is killed, and the command exits with interrupted: context canceled. A second signal stops the process immediately.