Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / containers / docker

Publishing your ASP.NET App to Linux in 5 minutes with Docker

4.60/5 (6 votes)
12 May 2015CPOL1 min read 36.3K  
Publishing your ASP.NET app to Linux in 5 minutes with Docker

In this section, I will demonstrate how to publish your ASP.NET APP on Linux VM using Docker extension of Visual Studio 2015. So, before we begin, we must need VS 2015 RC candidate installed on our machine. Then, we do need Docker extension for Visual Studio installed on our machine. You can install the same from Extension and Updates as shown below in the screen shot.

1st

Then, I need to create new ASP.NET 5 website as shown below in the screen shot.

1st

2nd

3rd

Once site got created successfully; then simply rt-click on the website and say Publish as shown below.

2nd

Then, it will provide the below options.

3rd

Now, if you don’t have any subscription, then you need to create one and provide the details in the next screen. For privacy reason, my details are hidden.

4th

5th

Then, it will give the below confirmation message.

6th

When you say ok here, it will build the app and prepare for hosting. You can check the status of the same in the output window when Azure is provisioning things for you. This process will take some time.

7th

Once it's completed, it will show the confirmation message as shown below:

8th

Now, I will come to and say publish, this time it will come in connections tab with below VM credentials.

9th

Then you can click on validate Connection for confirming everything is correct. Once verified, then you can go ahead and click next and publish the app.

10th

11th

While building the app, you can check the status in the output window.

12th

13th

14th

Once done, it will launch the same in the browser. Also, it launched in my new Project Spartan browser as I’m running on Windows 10 machine.

15th

Thanks for reading!

Image 19

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)