microsoft / iis-docker

Dockerfile for IIS
https://hub.docker.com/r/microsoft/iis/
MIT License
293 stars 129 forks source link

The operation timed out because a response was not received from the Virtual Machine hosting the container #93

Closed danleydmello closed 6 years ago

danleydmello commented 6 years ago

I am trying to build docker image using microsoft/iis by following steps decribed on https://hub.docker.com/r/microsoft/iis/. and getting this error:

PS D:\docker\iis> docker build -t iis-site . Sending build context to Docker daemon 2.048kB Step 1/5 : FROM microsoft/iis ---> 6d91070fab75 Step 2/5 : RUN mkdir C:\site ---> Running in 38f29bfe9e35 container 38f29bfe9e35ad7bf534e66e0020e0b2f0caa87e51be958b48c6029f2b0e1803 encountered an error during Start: failure in a Windows system call: The operation timed out because a response was not received from the Virtual Machine hosting the Container. (0xc0370109) PS D:\docker\iis>

Information Diagnostic ID from "Diagnose & Feedback" in the menu. 048585C3-B42F-4EE8-8E03-347399801267/2018-03-16_10-52-55

a reproducible case if this is a bug, Dockerfiles FTW Dockerfile:

Use IIS from microsoft docker registry

FROM microsoft/iis RUN mkdir C:\site RUN powershell -NoProfile -Command Import-module IISAdministration; New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:8000:"

EXPOSE 8000

ADD content/ /site

host distribution and version (Windows version, build number, etc) Windows 10 Enterprise Docker Version 18.03.0-ce-rc4-win57 (16511) Channel: edge

mcy94w commented 6 years ago

Hi @danleydmello : I'm guessing that you are using RS3 container host to run RS1 container images. Could you please try use microsoft/iis:windowsservercore-1709 as your base image?

danleydmello commented 6 years ago

@mcy94w , I was using Edge channel, I switched to stable and its working fine now. But I will keep your suggestion in mind If I encounter this problem again. Thanks