Docker Images and Containers for ASP.NET Core 2
This course will teach you how to build an optimized Docker image for your ASP.NET Core app and how to run your app in a container.
What you'll learn
Docker and ASP.NET Core are a match made in heaven. Gone are the days of staring at IIS to figure out why your web app won't work. Instead, in a matter of seconds, you can pull an image with your published application and start up a container. In this course, Docker Images and Containers for ASP.NET Core, you'll learn about Docker images and containers for ASP.NET Core. First, you'll discover how to run your app in a container and how to package it up as an image. Next, you'll explore how to compile your app in a container and how to leverage a multi-stage build to create a runtime optimized image for production. Finally, you'll learn how to easily compose in additional dependencies and easily spin those up with Docker and how to leverage Visual Studio's new Docker Support. By the end of this course, you'll be good to go with Docker images and containers for ASP.NET Core.
Table of contents
- Welcome and ASP.NET Core Prerequisites 2m
- A Container Is Just an Isolated Process 2m
- An Image Provides a Filesystem 3m
- Finding an Image to Run the dotnet CLI 2m
- Running the dotnet CLI in a Linux Container 3m
- Running the dotnet CLI in a Windows Container 4m
- Running the dotnet CLI in a Linux Container on a Mac 1m
- Running a Web API as a Traditional Process 4m
- Steps to Run the API in a Container 2m
- Running a Command Prompt in a Container Instead of dotnet 2m
- Mounting the API Folder into a Container 2m
- Publishing and Attempting to Run the API in a Container 3m
- Using the aspnetcore Image to Run the API in a Container 3m
- Hitting the API via the Containers IP Address 2m
- Publishing to a Host Port and Accessing Remotely 5m
- Accessing Published Ports Locally 4m
- Introduction 1m
- Multi-arch Image Support 4m
- Inspecting a Multi-arch Image 6m
- Picking an Image Based on Your App-model 4m
- Picking an Image Based on the Container Operating System 1m
- Picking an Image Based on Component and Version 5m
- Watch the dotnet-docker GitHub Repo for Image Naming Changes 1m
- The aspnetcore-build Image 1m
- Nightly Image Builds and .NET Framework Images 3m
- Resources to Keep up with Image Changes 4m
- We Can Build in a Container Too 3m
- An Analogy - Where to Make and Where to Eat 2m
- App Distribution - Published Folder or Image 6m
- Inspecting the API Image 3m
- Picking an SDK Image 3m
- Building with the .NET Core SDK in a Container 2m
- Publishing from a Container to Run on the Host 2m
- Building and Running in a Single SDK Container 3m
- Setting the API Port with an Environment Variable 4m
- Developing with the aspnetcore-build Image 2m
- Time for Automation - Breaking Down the Dockerfile 5m
- Using docker events for Monitoring 3m
- Understanding What docker build Does with a Dockerfile 5m
- Creating a Dockerfile to Build in a Container 7m
- Running the Dockerfile Based Build 3m
- Be Cognizant of the Content Root 2m
- Avoiding Cache Invalidation When Changing Your Dockerfile 3m
- Building in a Container and Creating a Runtime Optimized Image 4m
- Intermediate Containers Affords Switching Images Mid-dockerfile 5m
- Authoring a Multi-stage Dockerfile 3m
- Running the Multi-stage Build and the Resultant Optimized Image 3m
- Multi-stage Can Optimize Both Build and Runtime 5m
- Leverage MSBuild Composability to Speed up Image Builds 3m
- Further Examples 2m
- Automating Both Building and Starting the Container 1m
- Using docker-compose to Run a Container from an Existing Image 4m
- Starting the Container in the Background 3m
- Desired State Configuration Makes Changes Easy 2m
- Building with docker-compose.yml 5m
- Spinning up a Test Email Server 2m
- Sending Emails from Our Web App 4m
- Building and Recreating Services 3m
- Running Both the Web App and Test Mail Server in Containers 3m
- docker-compose up Does It All 5m
- Visual Studio - Add Docker Support 3m
- Exploring the Generated Dockerfile and .dockerignore 2m
- Debugging a Web App in a Container 3m
- Inspecting How Visual Studio Container Debugging Works 5m
- There Is Another Compose File at Play 4m
- Using Build Output to Inspect the Debug Container Setup 6m
- Inspecting Docker and Debug Output 2m
- Using the Release Configuration to Build a Publishable Image 2m
- Docs for Visual Studio Docker Support 1m
- dotnet new docker 1m
- Course Summary and Preview of Deployment Pipelines Course 5m