7.3 KiB
| title | description | keywords | redirect_from | |||
|---|---|---|---|---|---|---|
| Overview of Docker Build | Introduction and overview of Docker Build | build, buildx, buildkit |
|
Overview
Docker Build is one of Docker Engine's most used features. Whenever you are creating an image you are using Docker Build. Build is a key part of your software development life cycle allowing you to package and bundle your code and ship it anywhere.
Engine uses a client-server architecture and is composed of multiple components
and tools. The most common method of executing a build is by issuing a
docker build command. The CLI
sends the request to Docker Engine which, in turn, executes your build.
There are now two components in Engine that can be used to build an image. Starting with the 18.09 release, Engine is shipped with Moby BuildKit, the new component for executing your builds by default.
The new client
Docker Buildx{:target="blank"
rel="noopener" class=""}, is a CLI plugin that extends the docker command with
the full support of the features provided by BuildKit
builder toolkit.
docker buildx build command
provides the same user experience as docker build with many new features like
creating scoped builder instances, building against
multiple nodes concurrently, 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.
Docker Build is way more than a simple build command and is not only about packaging your code, it's a whole ecosystem of tools and features that support not only common workflow tasks but also provides support for more complex and advanced scenarios.
Packaging your software
Build and package your application to run it anywhere: locally or in the cloud.
Multi-platform images
Build, push, pull, and run images seamlessly on different computer architectures.
Configure BuildKit
Take a deep dive into the internals of BuildKit to get the most out of your builds.