Build a specific stage using Buildx.
Section: Buildx Build Workflows
Build target stage with Buildx
bash
bash
docker buildx build --target build --load -t myapp:build .Explanation
Useful with multi-stage Dockerfiles and advanced builders.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Buildx Build Workflows
Build and load into local daemon
Build and load the result into the local Docker image store.
Pass build secret
Pass a secret into the build without baking it into layers.