-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COPY --link
example uses incorrect # syntax
directive
#18946
Comments
How does one even know what |
hi, thanks for raising the issue/question The The If the syntax directive is unspecified, BuildKit uses whatever Dockerfile syntax you have bundled with your local BuildKit version. To see which version of BuildKit you're running locally, you can use the We mention this in a few different places of the documentation, although not in the Dockerfile reference itself. See here for example: https://docs.docker.com/build/building/packaging/#dockerfile-syntax It seems like we could improve the section on the syntax directive in the Dockerfile reference itself, or at least add a link to the relevant section where it's described in more detail. Let me look into it. |
Fixed in moby/buildkit#4519 - will be updated in docs in the near future |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
Is this a docs issue?
Type of issue
Information is incorrect
Description
https://docs.docker.com/engine/reference/builder/#copy---link states:
But then it goes to show:
Which clearly uses
# syntax=docker/dockerfile:1
.Location
https://docs.docker.com/engine/reference/builder/
Suggestion
Change the example to use
# syntax=docker/dockerfile:4
The text was updated successfully, but these errors were encountered: