-
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
Docker CLI Windows and long paths (260 characters) not working #1366
Comments
I just run into this issue and it was quite frustrating to find the root cause. In my situation some random files were missing in the container and the build would fail. Like the author describes this only happened when using BuildKit. |
Also ran into this issue... the fact that it's silently failing during copy makes it extremly hard to identify this about path being too long |
Did you solve this issue? I notive for node container this issue. |
Ran into the same issue with Java codebase.. took a while to figure out that the compilation was happening due to missing class files with long paths ! |
I too have run into this issue. Is this being looked into? |
If it is not easy to fix: It would be nice, if there were an error message, complaining about too long paths |
Failing silently isn't a great approach to being unable to read a file. It makes me question the integrity of the containers I build. I worked around the problem by using the following path syntax: docker build \\?\D:\path -f . Mapping |
I too ran into the same problem and spent a few hours debugging an error message that I got at Docker run, complaining with a cryptic message that was only a side effect of this real problem. As people pointed out, silent failures definitely isn't great. Here's the link to my problem ,arising out of this , on stackoverflow: https://stackoverflow.com/questions/72604450/mlflow-load-model-fails-python/72613045#72613045 |
Cross-linking -> #1086 |
@tonistiigi -- also if possible, could we add an extra tag on top of |
Looks like this issue was resolved along the way? Can't repro it no more. On Docker v24.0.6 (that runs Buildkit backend for Linux by default):
|
Please re-open if this is still happening but couldn't repro from my end. |
Hi there,
I think there is an issue with long paths files (longer than 260 characters), that are copied with
COPY
command within a Dockerfile.Its something like moby/moby#15775, but now related to Buildkit.
Issue
This is what I did in Powershell:
Having following Dockerfile
Running without Buildkit both files are inside the image, as expected:
Running with Buildkit only the shorter file is inside the image:
My Setup
Using current Docker Desktop for Windows:
The text was updated successfully, but these errors were encountered: