2.2 KiB
title | description | keywords | redirect_from | |
---|---|---|---|---|
Working with Buildx | Working with Docker Buildx | build, buildx, buildkit |
|
Overview
Docker Buildx is a CLI plugin that extends the docker command with the full support of the features provided by Moby BuildKit{:target="blank" rel="noopener" class=""} builder toolkit. It provides the same user experience as docker build with many new features like creating scoped builder instances and building against multiple nodes concurrently.
Build with Buildx
To start a new build, run the command docker buildx build .
$ docker buildx build .
[+] Building 8.4s (23/32)
=> ...
Buildx builds using the BuildKit engine and does not require DOCKER_BUILDKIT=1
environment variable to start the builds.
The docker buildx build
command
supports features available for docker build
, including features such as
outputs configuration, inline build caching, and specifying target platform.
In addition, Buildx also supports new features that are not yet available for
regular docker build
like building manifest lists, distributed caching, and
exporting build results to OCI image tarballs.
Buildx is flexible and can be run in different configurations that are exposed through various "drivers". Each driver defines how and where a build should run, and have different feature sets.
We currently support the following drivers:
- The
docker
driver (guide, reference) - The
docker-container
driver (guide, reference) - The
kubernetes
driver (guide, reference) - The
remote
driver (guide)
For more information on drivers, see the drivers guide.
High-level build options with Bake
Check out our guide about Bake to get started with the
docker buildx bake
command.