Browse code

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>
(cherry picked from commit c44fb423778e3d40cbc9e309d253067a5b8d4a96)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Nikolay Edigaryev authored on 2020/04/08 20:12:59
Showing 1 changed files
... ...
@@ -5014,7 +5014,7 @@ paths:
5014 5014
                 x-nullable: true
5015 5015
                 $ref: "#/definitions/ContainerState"
5016 5016
               Image:
5017
-                description: "The container's image"
5017
+                description: "The container's image ID"
5018 5018
                 type: "string"
5019 5019
               ResolvConfPath:
5020 5020
                 type: "string"