Commands Overview
Global flags
Section titled “Global flags”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:
# Validate configimglife --config myconfig.yaml --check
# Debug output with text logsimglife --log-format text --log-level debug sync --dry-runCommand reference
Section titled “Command reference”| 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 |
Typical pipeline order
Section titled “Typical pipeline order”imglife sync → mirror upstream imagesimglife build → build base images from mirrorsimglife eol update → refresh EOL cache (optional)imglife status → generate READMEimglife cleanup → apply retention policyInterruption
Section titled “Interruption”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.
Command reference pages
Section titled “Command reference pages”syncMirror public images to your registry.
buildBuild base images from Dockerfile templates.
cleanupDelete stale tags according to your retention policy.
scanFind, check and register the images a project uses.
statusGenerate a Markdown status report.
checkVerify a base image is current in applicative CI.
imagesDiscover images in the OCI registry.
appList and purge the records of scanned projects.
eolRefresh EOL data from endoflife.date.
versionPrint version information.