You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.9 KiB
1.9 KiB
OCI exporter
The oci
exporter outputs the build result into an
OCI image layout
tarball.
The docker
exporter behaves the same, however, it exports a docker image
layout instead.
Synopsis
Build a container image using the image
exporter:
$ docker buildx build --output type=image[,parameters] .
The following table describes the available parameters that you can pass to
--output
for type=image
:
Parameter | Value | Default | Description |
---|---|---|---|
name |
String | Specify image name(s) | |
compression |
uncompressed ,gzip ,estargz ,zstd |
gzip |
Compression type, see compression |
compression-level |
0..22 |
Compression level, see compression | |
force-compression |
true ,false |
false |
Forcefully apply compression, see compression |
oci-mediatypes |
true ,false |
false |
Use OCI mediatypes in exporter manifests, see OCI Media types |
buildinfo |
true ,false |
true |
Attach inline build info |
buildinfo-attrs |
true ,false |
false |
Attach inline build info attributes |
annotation.<key> |
String | Attach an annotation with the respective key and value to the built image,see annotations |
Annotations
The annotation options are the same as for the image
exporter.