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
• 10,620 points
1,438 views

1 answer to this question.

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,700 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 14, 2018 in Docker by Sophie may
• 10,620 points
1,365 views
0 votes
1 answer

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

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

answered Aug 14, 2018 in Docker by Sophie may
• 10,620 points
1,269 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,700 points
787 views
+2 votes
1 answer
+2 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
• 58,020 points
2,731 views
0 votes
2 answers

Error: RabbitMQ with Docker for Windows server

Connecting to other containers Step 1: Create a network. ...READ MORE

answered Aug 29, 2020 in Docker by Pistle
• 1,000 points
1,662 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP