Docker:Build
lastmod 2026-11-10created 2026-07-142 edits
docker build is a command that creates a container image from a Dockerfile and a build context. Each instruction is stacked as a layer, unchanged layers reuse the cache, -t adds a tag, and --build-arg passes arguments. Recent Docker uses BuildKit as the default builder; Buildx is used for multi-platform builds, and Kaniko for daemonless builds inside Kubernetes.