Docker Bake is Now Generally Available
Date: 3/5/2025 · Tags: #dev, #container, #newsDocker announced that Docker Bake is now generally available1. Docker Bake is an orchestration tool that streamlines Docker builds.
It help developers to transform complex build commands into declarative style configurations, which means from 2
$ docker build \
-f Dockerfile \
-t myapp:latest \
--build-arg foo=bar \
--no-cache \
--platform linux/amd64,linux/arm64 \
.
to
target "myapp" {
context = "."
dockerfile = "Dockerfile"
tags = ["myapp:latest"]
args = {
foo = "bar"
}
no-cache = true
platforms = ["linux/amd64", "linux/arm64"]
}
As the new says:
You can write Bake files in HCL, YAML (Docker Compose files), or JSON. In general, HCL is the most expressive and flexible format, which is why you'll see it used in most of the examples in this documentation, and in projects that use Bake.
Well, I may don't think so for the HCL part =.=