Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/reference/buildx_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,13 @@ Learn more about the built-in build arguments in the [Dockerfile reference docs]
--build-context=name=VALUE
```

Define additional build context with specified contents. In Dockerfile the context can be accessed when `FROM name` or `--from=name` is used.
When Dockerfile defines a stage with the same name it is overwritten.
Define additional build context with specified contents.

In a Dockerfile:

- the context can be accessed when `FROM name` or `--from=name` is used
- the context overrides a stage called `name` when used as `FROM ... AS name`
- the context overrides a `#syntax` directive when used as `#syntax=name`

The value can be a:

Expand Down