restore_image#
- restore_image(image_name: str, manifest_digest: str, root: str | PathLike | Path = None) bool#
Restore a removed Local Registry image ref from its manifest digest.
The digest is printed as part of the CLI rollback command after
ommx rmandommx prune-anonymous --delete. The manifest and its complete config/layer/subject closure must still be present and valid in the Local Registry CAS. Restore is serialized against deleting GC passes. ReturnsTruewhen the ref is inserted andFalsewhen it already points to the requested digest. A different existing target is reported as a conflict and is never replaced.