-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] make SplitDockerDomain
public
#1522
Conversation
SplitDockerDomain is very useful function to get the docker images name with out domain, so this PR wish to make it public. Signed-off-by: guofutan <guofutan@tencent.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtrmac PTAL
Are you interested in the name or everything but the domain? E.g., repo/name:tag
vs name
.
There already is Is there anything unusual in your use case that would make the two undesirable? |
the |
That seems to be hard-coding too much to me (compare containers/skopeo#854 (comment) ); and in that case the existing behavior of checking for, and explicitly adding, The balancing concerns are
A possible more general alternative: remapping namespace prefixes (that includes registry → registry, repo → repo, registry → namespace …). We already have several hand-crafted implementations like |
SplitDockerDomain
publicSplitDockerDomain
public
SplitDockerDomain
publicSplitDockerDomain
public
sorry i did not get your point @mtrmac , so what is the better way to get the can you give me some instruction? thanks. |
What is the higher-level problem this is trying to solve? If this is for the In my view, code handling Docker-like references should:
That would imply that ideally any remapping/redirecting/combination should have both a |
yes now this feature is need by implement |
Assuming the OCI support in |
SplitDockerDomain is very useful function to get the docker images name with out domain, so this PR wish to make it public.