Skip to content

Commit 72ef92a

Browse files
authored
Merge pull request #24722 from dvdksn/fix/issue-22759-bake-yaml-clarity
Clarify that Bake YAML support means Compose files
2 parents da4ae07 + 8788ed7 commit 72ef92a

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

content/manuals/build/bake/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Bake is a feature of Docker Buildx that lets you define your build configuration
1010
using a declarative file, as opposed to specifying a complex CLI expression. It
1111
also lets you run multiple builds concurrently with a single invocation.
1212

13-
A Bake file can be written in HCL, JSON, or YAML formats, where the YAML format
14-
is an extension of a Docker Compose file. Here's an example Bake file in HCL
15-
format:
13+
A Bake file can be written in HCL or JSON format. Bake can also build directly
14+
from a [Docker Compose file](./compose-file.md). Here's an example Bake file in
15+
HCL format:
1616

1717
```hcl {title=docker-bake.hcl}
1818
group "default" {

content/manuals/build/bake/introduction.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ building images in a consistent way, with the same configuration.
5151

5252
## The Bake file format
5353

54-
You can write Bake files in HCL, YAML (Docker Compose files), or JSON. In
55-
general, HCL is the most expressive and flexible format, which is why you'll
56-
see it used in most of the examples in this documentation, and in projects that
57-
use Bake.
54+
You can write Bake files in HCL or JSON. Bake can also read
55+
[Docker Compose files](./compose-file.md) and translate each service to a build
56+
target. HCL is the most expressive and flexible format, which is why you'll see
57+
it used in most of the examples in this documentation, and in projects that use
58+
Bake.
5859

5960
The properties that can be set for a target closely resemble the CLI flags for
6061
`docker build`. For instance, consider the following `docker build` command:

0 commit comments

Comments
 (0)