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
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
Building an image with the docker builder, while also trying to add annotations to index, doesn't result in an error.
Expected behaviour
When trying to build an image with annotations on index, using a docker-container builder, my build fails as expected if I try to use the docker exporter.
$ docker buildx b --builder container --annotation "index:foo=bar" --output type=docker .... => ERROR exporting to docker image format 0.0s => => exporting layers 0.0s------ > exporting to docker image format:------ERROR: failed to build: failed to solve: index annotations not supported for single platform export
Actual behaviour
$ docker buildx b --builder desktop-linux --annotation "index:foo=bar".[+] Building 1.2s (9/9) FINISHED docker:desktop-linux... => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:a10a6248e2608c811b279aab218200dfe92795a7724c40616574edb30df6c1fc 0.0s
dvdksn
changed the title
No error when adding index annotations using docker exporter
No error when adding index annotations using docker exporter and docker driver
Jul 16, 2024
Contributing guidelines
I've found a bug and checked that ...
Description
Building an image with the
docker
builder, while also trying to add annotations toindex
, doesn't result in an error.Expected behaviour
When trying to build an image with annotations on
index
, using adocker-container
builder, my build fails as expected if I try to use thedocker
exporter.Actual behaviour
Buildx version
github.com/docker/buildx 3005743 3005743
Docker info
No response
Builders list
Configuration
$ docker buildx b --builder desktop-linux --output type=docker --annotation "index:foo=bar" -<<< "FROM alpine"
Build logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: