Commands in Docker images are much slower than on native

keneanung's Avatar


13 Aug, 2019 01:21 PM


I'm trying to dockerize a Windows build environment, but my builds time out because rinning the necessary compile commands seem to run much slower than when they are natively. Compare the timestamps of commands in (the dockerization) and (on native Windows).

I turned off redirection of script output to see why the builds time out, otherwise the scripts are the same.

Is there any advice you can give?

Kind regards,

Edit: Use a better dockerization example

  1. 1 Posted by Ilya Finkelshte... on 14 Aug, 2019 05:56 PM

    Ilya Finkelshteyn's Avatar

    Hi Florian,

    Can you please try image called Windows Server 2019? It was developed for this kind of workloads and available per request. We enabled it for you. Usage example is here, but it is just FYI, as I think that you can just use your existing build scenario and only change the image in the appveyor.yml. Let us know how it goes.


  2. 2 Posted by keneanung on 15 Aug, 2019 08:06 AM

    keneanung's Avatar

    Hey Ilya,

    I'm still testing this, but to give an update on my progress:

    Since the base image is an ltsc2016-image, I needed to specify the --isolation=hyperv flag.

    I am not sure why, but calls to the MinGW bash fail on the new server, while they worked perfectly fine on the old.

    Thanks for your assistance,

  3. 3 Posted by Ilya Finkelshte... on 15 Aug, 2019 05:21 PM

    Ilya Finkelshteyn's Avatar

    Note that you can RDP to this build VM and debug locally. Keep in mind that build-specific environment variables are not available in RDP session (for security reasons) and you might need to re-set them or some of them manually.

  4. Ilya Finkelshteyn closed this discussion on 15 Oct, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM


02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM