From f0510caf2e868e21f6efbefa3ab66ec43d2f05fd Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Mon, 24 Apr 2017 15:20:06 -0700 Subject: [PATCH] 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 Upstream-commit: c9beb417f46a3a0d06a89c67b134cd399a7b948b Component: engine --- components/engine/image/spec/v1.1.md | 2 +- components/engine/image/spec/v1.2.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/image/spec/v1.1.md b/components/engine/image/spec/v1.1.md index 6279da54af..ce761f112a 100644 --- a/components/engine/image/spec/v1.1.md +++ b/components/engine/image/spec/v1.1.md @@ -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 [a-zA-Z0-9_.-], except they may not start with a . - or - character. Tags are limited to 127 characters. + or - character. Tags are limited to 128 characters.
Repository diff --git a/components/engine/image/spec/v1.2.md b/components/engine/image/spec/v1.2.md index 483ce1e4cb..789680c7a7 100644 --- a/components/engine/image/spec/v1.2.md +++ b/components/engine/image/spec/v1.2.md @@ -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 [a-zA-Z0-9_.-], except they may not start with a . - or - character. Tags are limited to 127 characters. + or - character. Tags are limited to 128 characters.
Repository