docs/build/index.md

1.4 KiB
Raw Blame History

title description keywords
Overview of Docker Build Introduction and overview of Docker Build build, buildx, buildkit

Docker Build is one of Docker Engines 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 from the Docker CLI. 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 create the build. Starting with the 18.09 release, Engine is shipped with Moby BuildKit{:target="blank" rel="noopener" class=""}, the new component for executing your builds by default.

With BuildKit, the new client Docker Buildx, becomes available as a CLI plugin. Docker Buildx extends the docker build command - namely through the additional docker buildx build command - and fully supports the new features BuildKit offers.

BuildKit is the backend evolution from the Legacy Builder, it comes with new and much improved functionality that can be powerful tools for improving your builds' performance or reusability of your Dockerfiles, and it also introduces support for complex scenarios.