Skip to content

Add name length validations to project creation #1232

@jcantrill

Description

@jcantrill

Ran into an issue where I was able to create project 'foo', but unable to push to the local docker registry because the name was too short. Add name length validations to project creation, server-side, and possibly to the client create project command.

Per @ncdc ref as the current restrictions are in flux:
https://github.com/docker/distribution/blob/master/registry/api/v2/names.go#L16
https://github.com/docker/distribution/blob/master/registry/api/v2/names.go#L20
moby/moby#10392 (comment)
distribution/distribution#241

@derekwaynecarr This would need to go upstream?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions