-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't use ".git" folder as a build context #4846
Comments
Yes, this looks to be related. Can you test with buildx 0.14-rc? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to use the local ".git" folder as a build context, I'm getting the error:
I tried it with both a relative path and an absolute path, getting an errors both ways.
Using other folders (with the same permission set) works well, so the issue seems to be specific to the ".git" folder.
I can get it to work by downgrading buildx.
It works with version
github.com/docker/buildx v0.10.2 00ed17d
but fails with 0.13.1.My command to build the image (from a makefile):
The dockerfile first line is
# syntax=docker/dockerfile:1
, also tried with# syntax=docker/dockerfile:1.4
and didn't make a difference.I tried removing
--build-arg BUILDKIT_INLINE_CACHE=1
and it didn't make a difference.Docker version:
Might be related to: #4777
The text was updated successfully, but these errors were encountered: