浏览代码

swagger: clarify the meaning of Image field in ContainerInspect endpoint

"Container's image" term is rather ambiguous: it can be both a name and an ID.

Looking at the sources[1], it's actually an image ID, so bring some clarity.

[1]: https://github.com/moby/moby/blob/a6a47d1a4944799ffbe3657d4dae68e0829a0dc6/daemon/inspect.go#L170

Signed-off-by: Nikolay Edigaryev <edigaryev@gmail.com>
Nikolay Edigaryev 5 年之前
父节点
当前提交
c44fb42377
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/swagger.yaml

+ 1 - 1
api/swagger.yaml

@@ -5086,7 +5086,7 @@ paths:
                 x-nullable: true
                 $ref: "#/definitions/ContainerState"
               Image:
-                description: "The container's image"
+                description: "The container's image ID"
                 type: "string"
               ResolvConfPath:
                 type: "string"