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

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

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,280 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,100 points
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,280 points
+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,140 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,280 points

© 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.