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>
This commit is contained in:
Stephen J Day 2017-04-24 15:20:06 -07:00
parent 3beb8d9c8b
commit c9beb417f4
No known key found for this signature in database
GPG key ID: 67B3DED84EDC823F
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ This specification uses the following terms:
A tag serves to map a descriptive, user-given name to any single image
ID. Tag values are limited to the set of characters
<code>[a-zA-Z0-9_.-]</code>, except they may not start with a <code>.</code>
or <code>-</code> character. Tags are limited to 127 characters.
or <code>-</code> character. Tags are limited to 128 characters.
</dd>
<dt>
Repository

View file

@ -88,7 +88,7 @@ This specification uses the following terms:
A tag serves to map a descriptive, user-given name to any single image
ID. Tag values are limited to the set of characters
<code>[a-zA-Z0-9_.-]</code>, except they may not start with a <code>.</code>
or <code>-</code> character. Tags are limited to 127 characters.
or <code>-</code> character. Tags are limited to 128 characters.
</dd>
<dt>
Repository