Browse code

image/spec: tags are 128 characters

Mostly, they always have been. Most regular expressions were implemented
as `[\w][\w.-]{0,127]`, which actually allows 128 characters, since we
start with a character in the first expression.

This "fact" has been backported to the existing specifications where
length is mentioned. For the most part, no ill-effects should come of
this, unless someone has optimized to hold the length of a tag in a 7
bit integer.

Signed-off-by: Stephen J Day <stephen.day@docker.com>

Stephen J Day authored on 2017/04/25 07:20:06
Showing 2 changed files
... ...
@@ -88,7 +88,7 @@ This specification uses the following terms:
88 88
         A tag serves to map a descriptive, user-given name to any single image
89 89
         ID. Tag values are limited to the set of characters
90 90
         <code>[a-zA-Z0-9_.-]</code>, except they may not start with a <code>.</code>
91
-        or <code>-</code> character. Tags are limited to 127 characters.
91
+        or <code>-</code> character. Tags are limited to 128 characters.
92 92
     </dd>
93 93
     <dt>
94 94
         Repository
... ...
@@ -88,7 +88,7 @@ This specification uses the following terms:
88 88
         A tag serves to map a descriptive, user-given name to any single image
89 89
         ID. Tag values are limited to the set of characters
90 90
         <code>[a-zA-Z0-9_.-]</code>, except they may not start with a <code>.</code>
91
-        or <code>-</code> character. Tags are limited to 127 characters.
91
+        or <code>-</code> character. Tags are limited to 128 characters.
92 92
     </dd>
93 93
     <dt>
94 94
         Repository