Docker for windows error: Internal server

0 votes

I am facing a problem while running a Dockerfile on Docker for windows. It has the below code:

# escape=`
FROM microsoft/iis
SHELL ["powershell", "-command"]
# Install ASP.NET
RUN Install-WindowsFeature NET-Framework-45-ASPNET; ` 
    Install-WindowsFeature Web-Asp-Net45
# Configure website
EXPOSE 8000 
RUN Remove-Website -Name 'Default Web Site'; ` 
md c:\barometer; `
New-Website -Name 'barometer' `
            -Port 8000 -PhysicalPath 'c:\barometer' `
            -ApplicationPool '.NET v4.5'
COPY PublishOutput c:\barometer

Then, I run the following commands:

docker build -t mvcbarometer .
docker run -d --name barometer mvcbarometer
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" barometer

I get the following error:

There is a problem with the resource you are looking for, and it cannot be displayed
Nov 12, 2018 in Docker by Sophie may
• 9,050 points
23 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Have you installed all the dependencies mentioned in the docker file?

I faced a similar issue, I was using url rewrite 2.0 functionality but then I  forgot to install it in the docker image.

Install it in the dockerfile, it will solve the problem

# Install Url Rewrite
ADD https://download.microsoft/download/C/9/E/C9E8180D-4E51-40A6-A9BF-776990D8BCA9/rewrite_amd64.msi /install/rewrite_amd64.msi
RUN msiexec.exe /i c:\install\rewrite_amd64.msi /passive
answered Nov 12, 2018 by Tyrion anex
• 8,280 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

Error: Docker for Windows not working

The following worked for me: Download VirtualBox 5.03  Reboot ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,050 points
35 views
0 votes
1 answer

Error: “Docker for Windows: No hypervisor is present”

I faced the same error and this ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,050 points
38 views
0 votes
1 answer

Error: Docker for windows failing to start

I got the same error, just follow ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,280 points
14 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,100 points
56 views
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.