-
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
Dockerfile doesnt recognize key of env in secret mount #20935
Comments
10 |
|
From the changelog, it's been added recently: https://docs.docker.com/build/buildkit/dockerfile-release-notes/#1100, maybe you need to update your version? |
As mentioned, this is a recent addition to the Dockerfile syntax, and (I think) GitHub actions still runs docker 26.1. However, you can update the Dockerfile syntax by using a syntax directive; adding a # syntax=docker/dockerfile:1
FROM your-image
# etc.. See; |
Thanks for the response both of you. Thats strange I was getting this error locally aswell and could of swore everything was up to date. I'll take some time tomorrow to test it out using the version syntax. Thanks again! |
Yes, so the documentation was updated when BuildKit did a release, and when it released the latest syntax ( While some features require an update of BuildKit itself, other features (most notably; most changes in the Dockerfile syntax) do not; if you put a So in general, we recommend starting your Dockerfile with (*); "always" may sometimes be after some days; the BuildKit team sometimes waits promoting the latest version to "latest" |
This! Maybe dockerfile:1 should be the default when somebody uses buildkit (who doesn't nowdays?) with precedence order is first what is defined in the dockerfile, so one can override for labs version, like |
Is this a docs issue?
Type of issue
Information is incorrect
Description
When dockerfile is ran in github action the an error is received saying key env is not recognized
Location
https://docs.docker.com/build/ci/github-actions/secrets/
Suggestion
No response
The text was updated successfully, but these errors were encountered: