Skip to content

Proposal: Federating namespace restrictions. - #13089

Closed
mattmoor wants to merge 1 commit into
moby:masterfrom
mattmoor:master
Closed

mattmoor wants to merge 1 commit into
moby:masterfrom
mattmoor:master

Conversation

@mattmoor

@mattmoor mattmoor commented May 8, 2015

Copy link
Copy Markdown
Contributor

See: registry/federated-namespaces.md

Signed-off-by: Matt Moore [email protected]

@mattmoor

mattmoor commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

@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.

Comment thread registry/federated-namespaces.md Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfinished sentence

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, should be fixed. thanks,

See: registry/federated-namespaces.md

Signed-off-by: Matt Moore <[email protected]>
@mattmoor

Copy link
Copy Markdown
Contributor Author

Thanks @mattdr should be fixed.

@mattmoor

Copy link
Copy Markdown
Contributor Author

@dmp42 ping?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dmp42

dmp42 commented May 14, 2015

Copy link
Copy Markdown
Contributor

ping @tiborvass @dmcgowan (+ @stevvooe and @RichardScothern)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stevvooe

Copy link
Copy Markdown
Contributor

@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.

@dmp42

dmp42 commented May 15, 2015

Copy link
Copy Markdown
Contributor

@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.

@mattmoor

Copy link
Copy Markdown
Contributor Author

@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.

@mattmoor mattmoor closed this May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants