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
• 9,530 points
119 views

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,270 points

Related Questions In DevOps & Agile

+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,110 points
75 views
0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
56 views
+1 vote
3 answers
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,520 points
155 views
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,270 points
62 views