mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
3beb8d9c8b
commit
c9beb417f4
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ This specification uses the following terms:
|
||||||
A tag serves to map a descriptive, user-given name to any single image
|
A tag serves to map a descriptive, user-given name to any single image
|
||||||
ID. Tag values are limited to the set of characters
|
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>
|
<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>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
Repository
|
Repository
|
||||||
|
|
|
@ -88,7 +88,7 @@ This specification uses the following terms:
|
||||||
A tag serves to map a descriptive, user-given name to any single image
|
A tag serves to map a descriptive, user-given name to any single image
|
||||||
ID. Tag values are limited to the set of characters
|
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>
|
<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>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
Repository
|
Repository
|
||||||
|
|
Loading…
Reference in a new issue