-
Notifications
You must be signed in to change notification settings - Fork 447
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
Unable to use custom build output with multiple child directories on windows #2433
Comments
@jamie-sherriff Do you have a reproducer? @profnandaa Can you check if you can verify this. |
Hey @tonistiigi Yup, minimal Docker file and command to reproduce is in the configuration section, but also copied below
docker buildx build --no-cache --target export-stage --output type=local,dest=./dist .
Also of note, i have reproduced on a separate windows machine Windows 10 22H2 1905.4291. This was using docker desktop 4.29 and the buildkit version appears to be the same being:
|
@tonistiigi -- I can repro this too, getting the same:
However, removing the
|
Same repro even with v0.13.2, investigating.
|
Same over here. Upgraded to latest Docker yesterday and still getting the same issue. I hadn't seen this thread previously but here is my write-up on SO (for an additional worked example): |
Contributing guidelines
I've found a bug and checked that ...
Description
I am trying to export several child/nested directories from containers using custom buildkit outputs with a cli command.
buildx build --target export-stage --output type=local, dest=./dist .
The command works in WSL and Linux fine but not Windows. This used to work for me on Windows 10 but no longer does, i am unsure when this was regressed or is a windows 11 limitation.
Expected behaviour
Nested child directories should be able to be copied, build kit commands should produce the same output between windows or Linux. In this example i am expecting
childir/grandchilddir
to be output from the build output into the dest directory.Actual behaviour
Receive the error on windows 11:
ERROR: failed to solve: error from receiver: context canceled
Buildx version
github.com/docker/buildx v0.13.1-desktop.1 2368b2ee41873b948cb607251cec573ed00f00f9
Docker info
Builders list
Configuration
docker buildx build --no-cache --target export-stage --output type=local,dest=./dist .
Build logs
Additional info
Using cli command
docker buildx build --no-cache --target export-stage --output type=local,dest=./dist .
Exact same command works in WSL2 or linux (Ubuntu 22.04)
Using Windows 11 23H1 Build 22631/3447
Removing the dockerfile line:
RUN mkdir childir/grandchilddir
Gets it working so leaves me to assume this is related due to nested directories.
Work around would be to tar up the directory and then untar it in windows but would prefer a minimal multiplatform solution. If the nested child directories are empty or not does not seem to matter.
The text was updated successfully, but these errors were encountered: