diff options
| author | Zuul <zuul@review.opendev.org> | 2026-06-18 11:26:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2026-06-18 11:26:13 +0000 |
| commit | a437f0bd5f406bf1f82dfdf05c4dac16c02573ff (patch) | |
| tree | 20540a222bfb47d156d8db3616df55f69fab1880 /doc/source/admin | |
| parent | c2a33b186be3c5991c85fdc0fa5172f52e55900a (diff) | |
| parent | 4e66cc2f5982cdab26e3838411a37ea115fd7ef5 (diff) | |
| download | kolla-a437f0bd5f406bf1f82dfdf05c4dac16c02573ff.tar.gz kolla-a437f0bd5f406bf1f82dfdf05c4dac16c02573ff.zip | |
Merge "kolla-build: Add Docker BuildKit support via docker buildx build"
Diffstat (limited to 'doc/source/admin')
| -rw-r--r-- | doc/source/admin/image-building.rst | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/doc/source/admin/image-building.rst b/doc/source/admin/image-building.rst index ff0a4164b..842198470 100644 --- a/doc/source/admin/image-building.rst +++ b/doc/source/admin/image-building.rst @@ -741,6 +741,29 @@ variables that will be picked up from the user env: Also these variables could be overwritten using ``--build-args``, which have precedence. +Docker BuildKit +--------------- + +When using ``--engine docker``, ``kolla-build`` builds images via +``docker buildx build`` (Docker BuildKit) by default. This requires the +``docker-buildx-plugin`` package to be installed. + +To disable BuildKit and fall back to the legacy docker-py SDK, set +``buildkit = False`` in ``kolla-build.conf`` or pass ``--nobuildkit`` on the +command line. + +To use a specific buildx builder instance (e.g. a ``docker-container`` or +remote driver), pass ``--buildkit-builder``: + +.. code-block:: console + + kolla-build --buildkit-builder mybuilder + +.. note:: + + ``--buildkit`` and ``--squash`` are mutually exclusive. Use one or the + other. + Cross-compiling --------------- @@ -756,7 +779,11 @@ To build ``ARM`` images on ``x86_64`` platform, pass the ``--base-arch`` and .. note:: - To make this work on x86_64 platform you can use tools like: `qemu-user-static + Cross-compilation is natively handled by Docker BuildKit; using BuildKit + (the default) is recommended for multi-platform builds. + + To make this work on x86_64 platform with the docker-py based builder + (``--nobuildkit``) you can use tools like: `qemu-user-static <https://github.com/multiarch/qemu-user-static>`_ or `binfmt <https://github.com/tonistiigi/binfmt>`_. |
