Docker on Windows randomly crashes with 0xc0370106 when DockerFile has too many commands

We have a dockerfile on microsoft/iis:10.0.14393.206 that runs IIS/PHP.

If we add too many commands the build starts to crash with this error:

  • Docker: some ghost images are messing up with the memory
  • Docker stop exit code -1 if the default CMD is a shell script
  • Access non-IP interface in docker container
  • Sed cannot find file while building Docker image
  • Setting Mesos DNS on ubuntu
  • How can I get environment variables of docker in node js?
  • Container d6f3e9bd6f3e9bd6f3e9bd6f3e9b encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106)

    If I run the same build command it will work after a few tries.

    I am running docker version: 17.06.0-rc4-ce-win15 (12573)
    System: Windows 10 build 15063.413, 16GB RAM, i5-6440HQ CPU 2.60GHz

    Is there a way to build a large dockerfile without it crashing? Is this some type limitation with Docker for windows?

  • Running Rails App in Docker Container using Non-Default Port
  • How to manage command line arguments in docker run command?
  • Build container found dead before completing the build. Build container died because it was out of memory, or the Docker image was missing glibc
  • Docker meaase saying “another repo already pulling”
  • Building small container for running compiled go code
  • Server Error when logging in to a private docker registry from docker in docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.