mirror of
https://github.com/containers/skopeo.git
synced 2026-07-15 06:55:09 +00:00
This commit introduces two new flags for the skopeo copy command to provide more granular control over multi-architecture image copying: --remove-list-signatures: Removes only the manifest list signature while preserving per-instance signatures. This provides finer control than the existing --remove-signatures flag which removes all signatures. --strip-sparse-manifest-list: Strips missing instances from manifest lists when copying only a subset of platforms (using --multi-arch with a platform list). This is useful for registries that don't support sparse manifest lists. The --strip-sparse-manifest-list flag requires explicit signature removal using either --remove-signatures or --remove-list-signatures, as stripping instances invalidates the manifest list signature. These flags address scenarios where users need to copy multi-architecture images to registries with different signature requirements or those that don't support sparse manifest lists, while still maintaining control over which signatures are preserved. Documentation has been updated with usage examples, and integration tests have been added to verify the new functionality. Signed-off-by: Alex Guidi <aguidi@redhat.com>