How to a run deployed app in Docker for Windows

0 votes

I was trying to deploy ASP.NET application using Docker for Windows. I have covered everything , but how am I supposed to open my application?

Aug 29, 2018 in DevOps & Agile by Sophie may
• 10,550 points

1 answer to this question.

0 votes

To deploy an ASP.NET web application to a Docker container, follow the below steps:

Publish Preset

1. Create a publish preset using the File System publish method which will result in a .pubxml file.

2. Pull the official ASP.NET image from Microsoft which is,

docker pull microsoft/aspnet

3. Make sure your dockerfile is created,

FROM microsoft/aspnet
COPY ./DockerDeploy/ /inetpub/wwwroot/

4. Now build the docker image using the following command. You can custom the container name as you wish,

docker build -t mywebapplication .

5. Run the container you created,

docker run -p 80:80 mywebapplication

This should definitely work.

answered Aug 29, 2018 by Tyrion anex
• 8,660 points

Related Questions In DevOps & Agile

0 votes
1 answer
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,220 points
0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29, 2020 in DevOps & Agile by Pistle
• 1,000 points
+1 vote
3 answers
+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,120 points
0 votes
1 answer

How can a script identify the difference between Docker Toolbox and Docker for Windows?

Now, the Toolbox works through docker-machine. The way ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,660 points