Docker Bake is Now Generally Available in Docker Desktop 4.38!
Docker Bake, a declarative build orchestration tool for BuildKit, is now generally available in Docker Desktop 4.38. It replaces chains of `docker build` commands with an HCL (or Compose-compatible) file defining targets, groups, variables and matrix builds, and parallelizes and deduplicates work. The GA release adds automatic deduplication of shared build-context transfers, entitlements (`--allow` for host networking, insecure mode, filesystem paths and SSH), composable structured attributes for attest/cache/output/secret/ssh that can be inherited and overridden, Terraform-style variable validation blocks, and a `--list` option for querying targets and variables.
Related posts
- Introducing Docker Build Checks: Optimize Dockerfiles with Best Practices
Docker mediumAdeptDocker Desktop 4.33 adds Build checks, which evaluate Dockerfiles against codified best-practice rules during `docker build` and report warnings. Because the checks are part of the build itself, they also consider build arguments and base images rather than only linting the text. `docker build --check` runs the evaluation in under a second without executing the build, and `# check=error=true` makes warnings fail CI. Individual rules can be disabled with `# check=skip=...`, and the checks also work with multi-stage builds, Bake and Docker Build Cloud.
- DotSlash: Simplified executable deployment
Meta Engineering mediumAdeptDotSlash, now open source and written in Rust, replaces platform-specific executables in source control with a small text file (shebang `#!/usr/bin/env dotslash` plus a lenient-JSON manifest) listing per-platform size, hash, format and providers. On execution it hashes the platform entry to a cache key, tries to exec the cached binary, and on ENOENT fetches, verifies (BLAKE3/SHA-256), decompresses and atomically moves the artifact into the cache, using advisory locks to dedupe concurrent fetches. Multiple DotSlash files can share one archive (e.g. node/npm/npx), and at Meta CI automatically builds, publishes and commits DotSlash files with provenance metadata; a GitHub Action and GitHub-releases provider bring the same workflow outside Meta.
- Docker Security Advisory: AuthZ Plugin Bypass Regression in Docker Engine
Docker mediumAdeptDocker Engine v19.03 and later regressed on a 2018 authorization-plugin bypass (CVE-2024-41110): an API request with Content-Length set to 0 causes the daemon to forward the request to the AuthZ plugin without its body, so a plugin not set to deny by default may approve it and allow privilege escalation. The original fix shipped in v18.09.1 in January 2019 but was not carried forward; patches were released July 23, 2024. Only setups relying on AuthZ plugins are affected, and Docker Desktop impact is limited to the VM, with 4.33 containing the fix. Remediation is to upgrade, or else avoid AuthZ plugins and restrict Docker API access.
- Docker Desktop 4.34: MSI Installer GA, Upgraded Host Networking, and Powerful Enhancements for Boosted Productivity & Administration
Docker mediumAdeptDocker Desktop 4.34 makes the MSI installer generally available for Docker Business, with silent installs and an `--allowed-org` flag that writes a Windows registry key to enforce sign-in to a specific organization. Host networking (`--net=host`) now works on Windows, macOS and Linux, so containers and the host can reach each other's TCP/UDP services over localhost. On WSL2 with the Mono distribution, quitting the app compacts the virtual disk when at least 16GB can be reclaimed. `docker login` now uses a browser-based flow that creates the access token automatically, `docker image list --tree` shows multi-platform images, and fresh installs default to the containerd image store.
- Build faster with Buck2: Our open source build system
Meta Engineering mediumAdeptBuck2 is Meta's from-scratch rewrite of Buck, open sourced with a Rust core and all language rules written in Starlark, and it completes builds about twice as fast as Buck1 internally. Its speed comes from a single incremental dependency graph held by a persistent daemon instead of separate target/action graph phases, plus Bazel-compatible remote execution and integration with virtual file systems via Watchman and Sapling. New rule primitives make complex patterns safe and efficient: dynamic_output lets rules run tools like ocamldep and wire dependencies from their output, and transitive-sets (tsets) avoid O(n²) memory for C++ link closures. The open source release is nearly identical to Meta's internal version and is aimed mainly at moderately sized multi-language projects.