Browse code

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>

majiayu000 authored on 2025/12/26 18:50:09
Showing 1 changed files
... ...
@@ -10002,7 +10002,12 @@ paths:
10002 10002
   /images/{name}/tag:
10003 10003
     post:
10004 10004
       summary: "Tag an image"
10005
-      description: "Tag an image so that it becomes part of a repository."
10005
+      description: |
10006
+        Create a tag that refers to a source image.
10007
+
10008
+        This creates an additional reference (tag) to the source image. The tag
10009
+        can include a different repository name and/or tag. If the repository
10010
+        or tag already exists, it will be overwritten.
10006 10011
       operationId: "ImageTag"
10007 10012
       responses:
10008 10013
         201: