Click here to Skip to main content
13,258,269 members (42,455 online)
Click here to Skip to main content
Add your own
alternative version

Stats

18K views
13 bookmarked
Posted 12 May 2015

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

, 12 May 2015
Rate this:
Please Sign up or sign in to vote.
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!

License

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

Share

About the Author

rahulsahay20
Team Leader
India India
I am Software Developer by profession, currently spearheading the development activities with Dell R&D Bangalore. My role is pretty much design analysis and Implementation. Designation wise am Lead here. So, pretty cool stuffs like Development, Requirement Analysis, client interaction are the key attributes of my profile. Also, I take my time to write quick snippets which can be useful to tune the existing software and can be easily integrated with any new software. I also blog @ http://myview.rahulnivi.net

A dedicated and results oriented Software professional and B.Tech (Information Science & Engineering) degree holder, with 7 years of Software Consulting experience. I have an enviable track record through a series of Software Development, Software Support and Software Testing & Debugging. The results have been achieved by a mix of dedication, focus, persuasiveness, and a ‘can do’ attitude. I am able to adapt to new technologies in a quick time. I am well-versed with design and development of .net based applications. I am proactive and self-motivated to identify and acquire current trends and advancements in the organization. I possess the ability to expand job-related knowledge and skills to improve performance and adjust to change.

To associate myself with an organization of repute which provides avenues for growth in the fields of software design, development and implementation, with a strong inclination towards system and penchant for taking up bigger challenges. ➤ My Current work:- Creating new features and maintaining the existing ones for premier customers for dell. I do take care of Dell Account portal end to end. The purpose of this portal is to help enterprise customers with smooth shopping experience @ dell.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
NewsNo more "docker containers" option in latest version.. Pin
Brent Jenkins18-Apr-16 0:27
memberBrent Jenkins18-Apr-16 0:27 
QuestionAsp .Net App on linux VM Pin
Member 1169211914-May-15 20:54
memberMember 1169211914-May-15 20:54 
AnswerRe: Asp .Net App on linux VM Pin
rahulsahay2015-May-15 1:01
memberrahulsahay2015-May-15 1:01 
Questioncan asp.net be hosted in linux / php host now? Pin
digish77713-May-15 20:11
memberdigish77713-May-15 20:11 
AnswerRe: can asp.net be hosted in linux / php host now? Pin
rahulsahay2013-May-15 22:25
memberrahulsahay2013-May-15 22:25 
GeneralRe: can asp.net be hosted in linux / php host now? Pin
digish77714-May-15 6:44
memberdigish77714-May-15 6:44 
GeneralRe: can asp.net be hosted in linux / php host now? Pin
rahulsahay2014-May-15 19:58
memberrahulsahay2014-May-15 19:58 
GeneralRe: can asp.net be hosted in linux / php host now? Pin
amigoface21-Nov-15 23:26
memberamigoface21-Nov-15 23:26 
Questiongood thought i was looking for something like this Pin
digish77713-May-15 20:11
memberdigish77713-May-15 20:11 
AnswerRe: good thought i was looking for something like this Pin
rahulsahay2013-May-15 22:21
memberrahulsahay2013-May-15 22:21 
GeneralMy vote of 5 Pin
Arunraj Chandrasekaran13-May-15 17:49
memberArunraj Chandrasekaran13-May-15 17:49 
Questionthis only works with Azure? Pin
luizfredericojr13-May-15 8:50
memberluizfredericojr13-May-15 8:50 
AnswerRe: this only works with Azure? Pin
rahulsahay2013-May-15 22:23
memberrahulsahay2013-May-15 22:23 
GeneralMy vote of 4 Pin
Santhakumar Munuswamy @ Chennai12-May-15 10:34
professionalSanthakumar Munuswamy @ Chennai12-May-15 10:34 
GeneralRe: My vote of 4 Pin
rahulsahay2013-May-15 0:09
memberrahulsahay2013-May-15 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 12 May 2015
Article Copyright 2015 by rahulsahay20
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid