Skip to content
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

question: Should there be support for repository names starting with capital letters #1854

Closed
PuneetPunamiya opened this issue Nov 30, 2023 · 1 comment
Labels
question Further information is requested

Comments

@PuneetPunamiya
Copy link

PuneetPunamiya commented Nov 30, 2023

I think repo name starting with capital letters are not supported because of this

For example: let's say if I have a repo name as example.com/Foo it would return an error saying repository can only contain the characters abcdefghijklmnopqrstuvwxyz0123456789_-./

@PuneetPunamiya PuneetPunamiya added the question Further information is requested label Nov 30, 2023
@imjasonh
Copy link
Collaborator

imjasonh commented Dec 1, 2023

Repo names containing uppercase letters just aren't valid. The Docker CLI doesn't support it, no runtimes support it, no registries support it.

Unfortunately OCI doesn't have a documented canonical spec for what constitutes a valid image reference, so this isn't very clear.

The closest we've come is https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys which references Distribution's https://github.com/distribution/distribution/blob/d0deff9cd6c2b8c82c6f3d1c713af51df099d07b/reference/reference.go

Specifically, this line indicates only a-z0-9 are allowed as repo names.

@imjasonh imjasonh closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants