MSVC does not support long paths inside Docker container
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker
- Domain
- infrastructure, operating-systems
Research direction
Start with the Dockerfile in the linked minimal reproduction repository and run docker build -t msvc-docker-bug . on the stated Windows Server Core base image. Compare the first and second compilations, then review the related Windows-Containers issue for context. Done means the second compilation succeeds inside the container, matching the host behavior.
Written by the indexing model from the issue text.
Description
Describe the bug
Apparently MSVC does not support long paths inside a Docker container. On the host, it works perfectly fine.
To Reproduce
I've prepared a minimal repo: https://github.com/jdoubleu/msvc-docker-bug
Steps to reproduce the behavior:
- clone the above repo
- run
docker build -t msvc-docker-bug .
The Dockerfile should be self-explanatory.
Expected behavior
The second compilation from the Dockerfile should work just as fine as the first one.
The behavior should match the host environment, where MSVC does not have any issues working with long paths. Even when long path support has not been enabled system-wide.
Configuration:
- Edition: Windows 11 Pro (10.0.22631 Build 22631)
- Base Image being used:
mcr.microsoft.com/windows/servercore:ltsc2022 - Container engine: docker
- Container Engine version:
Docker version 27.5.1, build 9f9e405
Additional information:
Related issue: https://github.com/microsoft/Windows-Containers/issues/361
- Dominant language
- PowerShell
- Stars
- 551
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/Windows-Containers
-
enhancement triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/Windows-Containers#630 · 5 comments ·
-
bug triage
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoft/Windows-Containers#648 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/Windows-Containers#647 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoft/Windows-Containers#646 · 2 comments · 1 reaction ·
-
bug triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
microsoft/Windows-Containers#645 · 4 comments ·
All issues in microsoft/Windows-Containers
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#2215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·