Click here to Skip to main content
15,122,379 members
Articles / Containers / Docker
Technical Blog
Posted 12 May 2015


13 bookmarked

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

Rate me:
Please Sign up or sign in to vote.
4.60/5 (6 votes)
12 May 2015CPOL1 min read
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.


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




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


Then, it will provide the below options.


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.



Then, it will give the below confirmation message.


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.


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


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


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.



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




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.


Thanks for reading!

Image 19

This article was originally posted at


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


About the Author

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 @

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.

Comments and Discussions

NewsNo more "docker containers" option in latest version.. Pin
User 1013254618-Apr-16 0:27
MemberUser 1013254618-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 be hosted in linux / php host now? Pin
digish77713-May-15 20:11
Memberdigish77713-May-15 20:11 
AnswerRe: can be hosted in linux / php host now? Pin
rahulsahay2013-May-15 22:25
Memberrahulsahay2013-May-15 22:25 
GeneralRe: can be hosted in linux / php host now? Pin
digish77714-May-15 6:44
Memberdigish77714-May-15 6:44 
GeneralRe: can be hosted in linux / php host now? Pin
rahulsahay2014-May-15 19:58
Memberrahulsahay2014-May-15 19:58 
GeneralRe: can 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
professionalluizfredericojr13-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.