Use the built-in Docker support in Visual Studio 2017 to add a Dockerfile and Docker Compose files to a .NET Core MVC web application, and then debug the application inside a Docker container.
- [Narrator] Let's take a look at how we can use…Visual Studio to add Docker support…to an existing application.…Here we have a .NET Core web application…open in Visual Studio 2017.…Let's run the application outside…of a Docker first and take a look at the output.…You're going to press the debug button…up here at the top.…This application shows the current computer name…and operating system.…We'll see this information change…when we run the application inside the container.…Let's stop the debugger,…and let's add Docker support to the application.…
To add Docker support using Visual Studio,…we'll right-click on the project file,…go to add, and click Docker support.…Now, to the right we can see that visual studio…has added some docker composed files…and has also added the Dockerfile.…Let's use the new files to debug our application…inside a container, and then we can take a closer look…at how it all works.…You'll notice at the top…that the debug button has changed to say "Docker"…instead of "IIS Express".…This is because the Docker composed project…
Author
Released
8/21/2017- Setting up your environment
- Adding Docker support to an application
- Debugging container-based apps in Visual Studio 2017
- The DevOps life cycle with Visual Studio and VS Team Services
- Configuring release and build
- Azure hosting options
- Using Kubernetes with Azure
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 12s
-
What you should know1m 20s
-
-
1. Docker Development Life Cycle: Overview
-
Set up your environment1m 43s
-
2. Docker Development Life Cycle: Visual Studio Code
-
3. Docker Development Life Cycle: Visual Studio 2017
-
Add Docker support and debug1m 31s
-
-
4. Docker DevOps Life Cycle with Visual Studio Team Services
-
Introduction56s
-
Add a Linux web app in Azure1m 38s
-
Put it all together3m 49s
-
-
5. Azure Hosting Options
-
Azure App Service1m 7s
-
-
6. Kubernetes with Azure Container Service
-
Overview36s
-
Connect to the registry1m 50s
-
Deploy an application1m 51s
-
Set up a load balancer1m 29s
-
-
Conclusion
-
Next steps1m 33s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Add Docker support and debug