Reference name rather than repository in reference grammar

Signed-off-by: Richard Scothern <richard.scothern@docker.com>
This commit is contained in:
Richard Scothern 2016-02-11 10:26:05 -08:00
parent ab9b433fca
commit 846328977e

View file

@ -3,7 +3,7 @@
// //
// Grammar // Grammar
// //
// reference := repository [ ":" tag ] [ "@" digest ] // reference := name [ ":" tag ] [ "@" digest ]
// name := [hostname '/'] component ['/' component]* // name := [hostname '/'] component ['/' component]*
// hostname := hostcomponent ['.' hostcomponent]* [':' port-number] // hostname := hostcomponent ['.' hostcomponent]* [':' port-number]
// hostcomponent := /([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])/ // hostcomponent := /([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])/