You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java
Copy file name to clipboardExpand all lines: buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImagePlatform.java
+14-23Lines changed: 14 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -102,30 +102,21 @@ public static ImagePlatform from(Image image) {
102
102
}
103
103
104
104
/**
105
-
* Return the value to use for the Docker API {@code platform} query parameter for the
106
-
* given API version.
107
-
*
108
-
* For API versions that support JSON (1.49 and above), this method returns a JSON
109
-
* object in the form {@code {"os":"...","architecture":"...","variant":"..."}}.
110
-
* For lower API versions, the legacy string representation {@code os[/arch[/variant]]}
111
-
* is returned.
112
-
* @param apiVersion the Docker API version to target
113
-
* @return the query parameter value to use for {@code platform}
105
+
* Return a JSON-encoded representation of this platform for use with Docker Engine
106
+
* API 1.48+ endpoints that require the platform parameter in JSON format
107
+
* (e.g., image inspect and export operations).
108
+
* @return a JSON object in the form {@code {"os":"...","architecture":"...","variant":"..."}}
0 commit comments