Repository navigation
Conversation
|
@dmp42 I wrote up this proposal to better capture my offhand remark from distribution/distribution#483 Please LMK what you think, and who should take a look at this. |
There was a problem hiding this comment.
Oops, should be fixed. thanks,
See: registry/federated-namespaces.md Signed-off-by: Matt Moore <[email protected]>
|
Thanks @mattdr should be fixed. |
|
@dmp42 ping? |
There was a problem hiding this comment.
This (probably) doesn't work for the reasons mentioned earlier.
Also, remember that tagging is an entirely client-side operation. Letting people tag freely, only to see their push failing down the road may be a questionable approach. Also, I'm concerned about moving validation to the server, for similar reasons: a given image name might work with registry A, and not with registry B.
There was a problem hiding this comment.
FWIW, by making the v2-naming space a non-superset of v1, you have already created this situation. In fact, I have included an example where I do precisely this with the 1.6 client towards the end.
Moreover, you cannot possibly allow folks to start using the expanded namespace afforded by v2 without considering the case where it fails when pushing to v1.
|
ping @tiborvass @dmcgowan (+ @stevvooe and @RichardScothern) |
There was a problem hiding this comment.
V2 does not prescribed this definition of namespace. This description is more of the conventions used on the hub. The number of components is not restricted and the meaning of each component is use case specific.
|
@mattmoor I think you'll get a lot further in this regard if you work through the docker/distribution project where we are actively discussing these issues. Specifically, this is directly relevant to distribution/distribution#303. Regarding the actual validation of names, the only path forward is to make the docker client and the registry consistent. There is no good reason to segment the community by registries that support different naming conventions. In other words, we will relax naming to the V2 API specification but no further. (The fact that the docker daemon allows tagging images as "mattmoor/_blazinga" is a bug). Arguably, we are missing a few specifications for the grammar of names, such as digests. A good starting point might be to add those to the V2 API specification. |
|
@stevvooe they filed here on my suggestion (though admittedly the question was specifically about lifting the client restriction on colons in name portions). @mattmoor apology for making you move around repositories - hopefully @stevvooe indications will better help you. My remark still stands about colons though - creating ambiguity for the user regarding separation between name and tag is probably not going to fly. |
|
@stevvooe I added some commentary on the linked issue. Let's close this and continue the discussion there, but I'm hoping that through a discovery service we might be able to achieve both of our goals. Closing this for now. |
See: registry/federated-namespaces.md
Signed-off-by: Matt Moore [email protected]