Open negasora opened 1 year ago
Related issue https://github.com/docker/buildx/issues/1484
The generated tarball contains all images
What's your use case?
Build semantic does not have the same purpose as the docker save
. If you really want this, you need to output each tarball and join them with docker save
. Would also need syncable output with https://github.com/docker/buildx/pull/1197.
We build images for a remote, offline, embedded system. We have no intention to run the containers on the build machine. To get the images onto the embedded system, we copy the them over as an oci tarball.
In order to get a single tarball with all images, we currently load the images in the local docker, only that we can then do docker save
to get them out as a single OCI tarball.
Especially for large images, this is very slow.
If there's only one image, we can just use buildx bake
directly to oci tarball, without loading into local docker, which is much faster.
Contributing guidelines
I've found a bug and checked that ...
Description
Attempting to output multiple targets to a single tarball results in a single random target being contained in the tarball, instead of all of them.
Expected behaviour
The generated tarball contains all images
Actual behaviour
The generated tarball contains a random image
Buildx version
github.com/docker/buildx 0.10.3 79e156beb11f697f06ac67fa1fb958e4762c0fab
Docker info
Builders list
Configuration
With the following files,
docker-bake.hcl
:Dockerfile_python
:Dockerfile_redis
:docker buildx bake -f docker-bake.hcl
Logs
No response
Additional info
No response