You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the support of oras backup and restore, users are able to back up artifacts from multiple registries/repositories to an OCI layout.
We should consider supporting OCI layout for oras repo ls to allow users to list all repositories inside the OCI layout for better usability.
Possible UX:
$ oras repo ls --oci-layout-path oci-dir/foo.example.com/testbar.example.com/dev/hello-worldbar.example.com/something/else
Why is this needed for ORAS?
This feature would enhance the usability of the ORAS backup and restore functionality by providing users with a clear overview of all repositories contained within an OCI layout.
Are you willing to submit PRs to contribute to this feature?
Yes, I am willing to implement it.
Reacted by Feynman Zhou, Sajay Antony and Shiwei Zhang
Hi @Wwwsylvia , I'd like to work on this issue as a first-time contributor.
One question before I start: repo tags --oci-layout-path relies on tags being written in the qualified registry/repository:tag form to group correctly, but oras backup currently writes bare tag names (e.g. v1), not that qualified form. Should repo ls --oci-layout-path just rely on the same convention as repo tags (skipping/ignoring bare tags), or is there a different approach in mind?
Activity
shizhMSFT commentedon Jul 4, 2025
Additional possible UX:
TerryHowe commentedon Jul 4, 2025
Should we consider making the user specify the regular expression like the ls command?
bar.example.com*TerryHowe commentedon Jul 4, 2025
If this was to act like ls, users could in theory specify multiple regular expressions.
oras repo ls --oci-layout-path oci-dir/ *v1.31* *v.1.32*sajayantony commentedon Jul 15, 2025
I'm actually leaning towards pipe and filter instead of supporting a built-in filter just to keep the code simpler here.
MrShubhamJadhav commentedon Sep 28, 2026
Hi @Wwwsylvia , I'd like to work on this issue as a first-time contributor.
One question before I start:
repo tags --oci-layout-pathrelies on tags being written in the qualifiedregistry/repository:tagform to group correctly, butoras backupcurrently writes bare tag names (e.g.v1), not that qualified form. Shouldrepo ls --oci-layout-pathjust rely on the same convention asrepo tags(skipping/ignoring bare tags), or is there a different approach in mind?Happy to get started either way.