---
title: "Docker Bake is Now Generally Available in Docker Desktop 4.38!"
description: "Docker Bake, a declarative build orchestration tool for BuildKit, is now generally available in Docker Desktop 4.38."
url: "https://swe.quest/articles/docker-bake-is-now-generally-available-in-docker-desktop-4-38-c91e7ae722493381"
canonical: "https://www.docker.com/blog/ga-launch-docker-bake/"
source: "Docker"
published: "2025-02-05"
difficulty: "medium"
kind: "Release"
reading_minutes: 9
tags: ["containers","build-systems","ci-cd"]
---

# Docker Bake is Now Generally Available in Docker Desktop 4.38!

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-02-05, 9 min read, Release. Original: [https://www.docker.com/blog/ga-launch-docker-bake/](https://www.docker.com/blog/ga-launch-docker-bake/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Dockerfiles
- docker build basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Docker Bake, Docker Desktop, BuildKit, Docker Buildx, HCL, Docker Build Cloud, Docker Compose

## Related posts

- [Introducing Docker Build Checks: Optimize Dockerfiles with Best Practices](https://swe.quest/articles/introducing-docker-build-checks-optimize-dockerfiles-with-best-practices-2400d0a2e13e5604.md): Docker · 2024-07-29 · Medium · 6 min read · Containers, Static analysis, CI/CD, Developer tools
  Docker Desktop 4.33 adds Build checks, which evaluate Dockerfiles against codified best-practice rules during \`docker build\` and report warnings.
- [DotSlash: Simplified executable deployment](https://swe.quest/articles/dotslash-simplified-executable-deployment-e29283bb97f83f66.md): Meta Engineering · 2024-02-06 · Medium · 13 min read · Developer tools, Build systems, Rust, CI/CD, Version control
  DotSlash, 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.
- [Docker Security Advisory: AuthZ Plugin Bypass Regression in Docker Engine](https://swe.quest/articles/docker-security-advisory-authz-plugin-bypass-regression-in-docker-engine-a88edacc9440d46e.md): Docker · 2024-07-23 · Medium · 3 min read · Containers, Identity & auth, Vulnerability research, Security
  Docker 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.
- [Docker Desktop 4.34: MSI Installer GA, Upgraded Host Networking, and Powerful Enhancements for Boosted Productivity & Administration](https://swe.quest/articles/docker-desktop-4-34-msi-installer-ga-upgraded-host-networking-and-powerful-867a99a0a4ebe137.md): Docker · 2024-09-03 · Medium · 8 min read · Containers, Developer tools, Networking, Identity & auth
  Docker 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.
- [Build faster with Buck2: Our open source build system](https://swe.quest/articles/build-faster-with-buck2-our-open-source-build-system-ede49d4bb9123548.md): Meta Engineering · 2023-04-06 · Medium · 7 min read · Build systems, Rust, Open source, Developer productivity
  Buck2 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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
