-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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 on Windows hangs building a layer with icu built with vcpkg #40266
Comments
Looks like I have a similar issue, but with Description Building my image gets stuck right after the successful compilation and installation of Qt (~40min) without finishing this build step (no sign of progress after 120min).
No network or disk activity, but Qt5.Dockerfile # escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS BuildTools
COPY InstallBuildTools.cmd C:\TEMP\
ADD https://aka.ms/vscollect.exe C:\TEMP\vscollect.exe
ADD https://aka.ms/vs/15/release/channel C:\TEMP\VisualStudio.chman
ADD https://aka.ms/vs/15/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
RUN C:\TEMP\InstallBuildTools.cmd C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
--installPath C:\BuildTools `
--channelUri C:\TEMP\VisualStudio.chman `
--installChannelUri C:\TEMP\VisualStudio.chman `
--add Microsoft.VisualStudio.Workload.VCTools `
--includeRecommended
RUN powershell -NoProfile -Command `
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install -y git --params "/NoShellIntegration"
FROM BuildTools AS OliveDeps
ARG CMAKE_VER=3.20.1
ADD https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-windows-x86_64.zip cmake-${CMAKE_VER}-windows-x86_64.zip
RUN powershell -NoProfile -Command `
Expand-Archive cmake-%CMAKE_VER%-windows-x84_64.zip C:\Tools\; `
Remove-Item -Force cmake-%CMAKE_VER%-windows-x86_64.zip
WORKDIR C:\Tools\
RUN git clone https://github.com/Microsoft/vcpkg.git
WORKDIR vcpkg
RUN .\bootstrap-vcpkg.bat
RUN setx PATH "C:\Tools\cmake-%CMAKE_VER%-windows-x86_64\bin;C:\Tools\vcpkg;%PATH%"
RUN vcpkg install qt5-base:x64-windows
FROM OliveDeps AS Olive
VOLUME C:\olive\
ENTRYPOINT C:\BuildTools\Common7\Tools\VsDevCmd.bat &&
CMD powershell -NoLogo -ExecutionPolicy Bypass InstallBuildTools.cmd @if not defined _echo echo off
setlocal enabledelayedexpansion
call %*
if "%ERRORLEVEL%"=="3010" (
exit /b 0
) else (
if not "%ERRORLEVEL%"=="0" (
set ERR=%ERRORLEVEL%
call C:\TEMP\vscollect.exe -zip:C:\vslogs.zip
exit /b !ERR!
)
)
Steps to reproduce the issue:
Describe the results you received: The last messages it printed:
Describe the results you expected: Complete the build step Additional information you deem important (e.g. issue happens only occasionally): Hung up in this step 3 out of 3 times so far. Possibly related:
Diagnostics ID: Output of
Output of
Additional environment details (AWS, VirtualBox, physical, etc.): 90 GB free disk space (SSD). daemon.json {
"registry-mirrors": [],
"insecure-registries": [],
"debug": true,
"experimental": true
} |
I have also experienced this now and stuck in making a build image. I saw in logviewer, that it succeeded in saving a state, ie. after ICU is compiled. The docker instance is stopped and it just hangs there, not starting the next RUN instruction. Log viewer entry
What can I do to debug this? I have most recently tried with versions below, but also the current stable release. Both get stuck. Dianostics ID: E639E25F-7E9A-4B35-AB07-5D833C390C1E/20200720213720 Output of Server: Docker Engine - Community Output of Server: |
I don't know what did it but latest version of Docker Desktop, with engine version 20.10.5, running on Windows 10.0.21359 appears to no longer have this issue. |
I tried to build my Qt5.Dockerfile again with Docker Engine v20.10.5 on Windows 10 Pro 2004 Build 19041. It took about 60 minutes to install and build everything, then there was a period of 20 minutes with high disk activity (maxing out IOPS of my SSD). Building the image completed successfully almost instantly after that. The problem appears to be fixed indeed. |
right, closing this then |
docker build
the following Dockerfile on Windows and it will hang. dockerd will be soaking up around 90% CPU on my machine seemingly indefinitely. nothing interesting appears in the logs.it has something to do specifically with having vcpkg build libicu, in that having it build some other package does not hang.
I've tried docker stable and edge, on windows 10 1903 and 1909. all of them hang.
Steps to reproduce the issue:
docker build
Describe the results you received:
a hung dockerd
Describe the results you expected:
a successfully built layer
Additional information you deem important (e.g. issue happens only occasionally):
seems ICU specific, somehow.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: