From 22345e3369abe84a7f3d991b2e3d064f2f8f8423 Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Fri, 26 Dec 2025 17:50:09 +0800 Subject: [PATCH] docs: improve description of image tag API endpoint Clarify what the /images/{name}/tag endpoint does by explaining that it creates an additional reference (tag) to the source image, and that existing tags will be overwritten. The previous description "Tag an image so that it becomes part of a repository" was unclear about what the operation actually does. Fixes #22402 Signed-off-by: majiayu000 <1835304752@qq.com> --- api/swagger.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 610dc778d8..bd961e4a03 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -10002,7 +10002,12 @@ paths: /images/{name}/tag: post: summary: "Tag an image" - description: "Tag an image so that it becomes part of a repository." + description: | + Create a tag that refers to a source image. + + This creates an additional reference (tag) to the source image. The tag + can include a different repository name and/or tag. If the repository + or tag already exists, it will be overwritten. operationId: "ImageTag" responses: 201: