-
Notifications
You must be signed in to change notification settings - Fork 58
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 build hangs indefinitely exporting layers. #213
Comments
Opening MSFT internal 38827308 to track. |
No updates, just commenting so the bot doesn't close this. I can confirm that this is still an issue. |
Also happens on Linux VM with newest docker and BuildKit enabled. "Classic" docker-compose wit BuildKit disabled works fine... Client: Server: WARNING: bridge-nf-call-iptables is disabled |
This issue has been open for 30 days with no updates. |
No updates, just bumping so that the bot doesn't close this. I can confirm that this is still an issue. |
This is an issue for me also, again when installing MSYS2 in a docker container |
Has anyone seen this issue happening on nanoserver base images? Or is it happening only on servercore? |
This issue has been open for 30 days with no updates. |
No updates, just commenting so the bot doesn't close this. I can confirm that this is still an issue. |
I am also a victim of this bug |
No updates to share, we are still looking into this. |
Confirming fresh repro with slightly newer version numbers.
|
This issue has been open for 30 days with no updates. |
No updates, just commenting so the bot doesn't close this. I can confirm that this is still an issue. |
@kevpar has a PR our that should fix this issue microsoft/go-winio#261 |
No updates, just bumping so that the bot doesn't close this. I can confirm that this is still an issue. |
I suffered from a similar problem, and I solved this, I hope the details that I offered can help you.
This docker file will lead to hanging because the command of There are two methods that can solve this problem. The first is deleting the
In my previous understanding, the CMD in dockerfile only runs when a container starts, but now I guess the CMD in dockerfile maybe executes during image exploration. I hope this information is helpful to you. |
moby/moby#5419 |
Those last two comments are probably unrelated, as this issue appears to be happening during cleanup of a temporary folder used when exporting a WCOW layer, and they are both Linux containers. |
For anyone tracking this issue here only, based on research in microsoft/hcsshim#696 this appears to be an msys/cygwin specific bug, and is most-commonly triggered when pacman updates itself, e.g., during msys2 install. A trivial workaround for RUN choco install -y msys2 or similar RUN choco install -y msys2 && del /f /s /q "C:\$Recycle.Bin" This should not affect the resulting container, as |
A viable workaround! The nicest birthday present this 1 year old issue could have asked for :-) I can confirm that the workaround works in my original production scenario. |
1 similar comment
A proposed Go-level fix works for me in a build of dockerd.exe. Assuming this fix does land for Go 1.21, I don't know if it'll then migrate back to older Go versions, or if we will be waiting on Docker and containerd to migrate to Go 1.21. Update: It landed in Go master branch, so unless it's reverted, it'll be in Go 1.21. The initial feedback regarding backporting is that it's probably too intrusive, but perhaps changing the hang into a returned error would be doable instead. |
3 similar comments
This issue has been open for 30 days with no updates. |
The fix has indeed landed in Go 1.21.0. |
Thank you for sharing the update @TBBle! Closing this because the fix is now in Go 1.21.0. |
Describe the bug
This is a duplicate of microsoft/hcsshim#696, but I was asked to open a new issue here.
To Reproduce
Dockerfile:
docker build
At this point, the RUN command has completed successfully. Docker engine takes a few minutes to write out the file system layers, and the child process (i.e.
docker-windows-write-layer
) exits.dockerd.exe is now hung, and a stale
hcsNNNNNNNNNN
folder is left inC:\ProgramData\Docker\tmp
(or wherever you have the dockerd data directory configured).Expected behavior
The docker build command completes successfully.
Configuration:
Additional context
The text was updated successfully, but these errors were encountered: