extras/docker: buildx plugin required to export OCI-compliant images
The docker build
command is deprecated and will be removed:
$ docker build --help >/dev/null
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
(note: we don't use it anyway, but keep reading)
It is being replaced by docker buildx
, which is still an experimental feature, but should make it easier to construct multi-platform images:
See also:
- https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
- https://www.docker.com/blog/how-to-rapidly-build-multi-architecture-images-with-buildx/
- https://docs.docker.com/build/exporters/
The side-effect is that, in theory, we can also export OCI-compliant images for use elsewhere, if we have buildx
plugin support.
This issue is to investigate and implement whatever is needed to export OCI-compliant images using buildx
. If we can create the initial images in the same step, or with the same tool, great.