Skip to content

Conversation

@AkhilManoj03
Copy link

Addresses documentation gap from #3121 (comment).

The --file flag in docker buildx build supports URLs in addition to local paths and stdin, but this wasn't documented. Updated documentation to reflect this with examples for each use case.

Expand the buildx build doc to include details on the supported input
options for the --file flag: local file path, remote URL, and stdin. Add
examples for each input type to enhance user understanding.

Signed-off-by: Akhil Manoj <akhil.manoj2003@gmail.com>
Signed-off-by: Akhil Manoj <manoja2@vcu.edu>
@AkhilManoj03 AkhilManoj03 force-pushed the 3121-improve-file-flag-docs branch from 7e9b39c to 967471d Compare October 7, 2025 16:25
@tonistiigi tonistiigi requested a review from dvdksn December 13, 2025 00:06
Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 🙇 needs some small changes

$ docker buildx build -f path/to/Dockerfile .
```

#### remote URL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### remote URL
#### Remote URL

- [`remote URL`](#remote-url)
- [`stdin`](#stdin)

#### local file path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### local file path
#### Local file path


#### stdin

To read a Dockerfile from stdin, you can use `-` as the argument:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To read a Dockerfile from stdin, you can use `-` as the argument:
To read a Dockerfile from stdin, use `-` as the argument:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants