Docker build
docker build is a Docker command that constructs a container image from a Dockerfile and its build context.
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
docker build is a Docker CLI command that constructs a Docker image from a build context and instructions.
- How it is used
- Packages a microservice as a Docker image before local execution, registry publication, or Kubernetes deployment.
- How deep it goes
- Explains command syntax, build context, tagging, cached layers, output, and deployment-oriented versioning without detailing Dockerfile instructions.
- Examples
- Uses Node.js video-streaming projects, Dockerfile-prod builds, image listings, and versioned registry-publishing commands.
- What you can do after
- Build it from scratch, inspect the resulting image, assign deployment versions, and prepare it for registry publication.
Spring in Action, Sixth Edition
docker build is a Docker command that constructs a container image from a Dockerfile and its build context.
- How it is used
- Builds a deployable container image from a Spring Boot application's Dockerfile and executable JAR.
- How deep it goes
- Explains Dockerfile instructions line by line and demonstrates tagged builds, without detailing Docker image internals.
- Examples
- Uses an OpenJDK 11 Dockerfile, a target/*.jar artifact, and a tagged Taco Cloud image build.
- What you can do after
- Builds a tagged Docker image from a Spring Boot project's Dockerfile and build context.
Read how Spring in Action, Sixth Edition explains docker build →
Data Pipelines with Apache Airflow, Second Edition
docker build is a Docker CLI command that constructs an image from a Dockerfile and its build context.
- How it is used
- Builds container images that package task code and dependencies for execution with Docker or DockerOperator.
- How deep it goes
- Explains Dockerfile instructions, build context, tagging, build output, and runtime testing, but does not detail advanced build configuration.
- Examples
- Uses weather-fetching and MovieLens ratings images, with tagged builds and docker run help checks.
- What you can do after
- Build it from scratch by writing a Dockerfile, supplying a context, tagging the image, and testing its packaged command.
Read how Data Pipelines with Apache Airflow, Second Edition explains docker build →
Road to Kubernetes
docker build is a Docker command that constructs a container image from a Dockerfile and build context.
- How it is used
- Builds repeatable container images for running applications locally or preparing them for registry-based deployment.
- How deep it goes
- Explains Dockerfile-driven builds, runtime checks, registry tagging, and environment variants without detailing Docker’s internal build engine.
- Examples
- Demonstrates Node.js builds, runtime port and environment overrides, Docker Hub publishing, and development, staging, and production Dockerfiles.
- What you can do after
- Apply it via Docker to build tagged images, run them with configuration overrides, and prepare valid registry-bound artifacts.
Also covered in
What to know first
- containerA software container is an isolated execution environment that packages an application and its dependencies, typically sharing the host operating-system kernel.
Related concepts
- container imageproduces · A container image is a packaged filesystem and metadata artifact from which a container can be created and run.
- Dockerfileuses · A Dockerfile is a text file containing instructions for building a Docker container image.
- Docker Composeused by · Docker Compose is a tool for defining and running applications composed of multiple containers through declarative configuration.
- shell scriptused by · A shell script is a text program containing commands interpreted and executed by a command-line shell.
- build contextuses · A Docker build context is the set of files and directories supplied to Docker as input for building a container image.
- Buildxalternative to · Buildx is a Docker CLI plugin for building container images with advanced capabilities, including multi-platform builds.
Questions about docker build
What is docker build?
docker build is a Docker command that constructs a container image from a Dockerfile and its build context.
Which Manning books explain docker build?
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform, Spring in Action, Sixth Edition, Data Pipelines with Apache Airflow, Second Edition and Road to Kubernetes.
What should I know before learning docker build?
Manning books that teach docker build usually introduce container first.
What is the difference between docker build and Buildx?
docker build is a Docker command that constructs a container image from a Dockerfile and its build context. Buildx is a Docker CLI plugin for building container images with advanced capabilities, including multi-platform builds.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



