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: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,8 @@ The value supplied will be passed unvalidated to Docker when creating the builde
190
190
| `tags`
191
191
|
192
192
| A list of one or more additional tags to apply to the generated image.
193
-
The values provided to the `tags` option should be full image references in the form of `[image name]:[tag]` or `[repository]/[image name]:[tag]`.
193
+
The values provided to the `tags` option should be *full* image references.
194
+
See <<build-image.customization.tags, the tags section>> for more details.
194
195
|
195
196
196
197
| `buildWorkspace`
@@ -236,6 +237,24 @@ You can override this behaviour as shown in the <<build-image.examples.builder-c
236
237
237
238
238
239
240
+
[[build-image.customization.tags]]
241
+
=== Tags format
242
+
243
+
The values provided to the `tags` option should be *full* image references.
244
+
The accepted format is `[domainHost:port/][path/]name[:tag][@digest]`.
245
+
246
+
If the domain is missing, it defaults to `docker.io`.
247
+
If the path is missing, it defaults to `library`.
248
+
If the tag is missing, it defaults to `latest`.
249
+
250
+
Some examples:
251
+
252
+
* `my-image` leads to the image reference `docker.io/library/my-image:latest`
253
+
* `my-repository/my-image` leads to `docker.io/my-repository/my-image:latest`
254
+
* `example.com/my-repository/my-image:1.0.0` will be used as is
0 commit comments