Run ASP.NET Core 3.1 Apps in Docker with HTTPS.

Run ASP.NET Core 3.1 Apps in Docker with HTTPS.

In this step by step tutorial I take you through how to package your ASP.NET Core app as a Docker Image and then run your image as a Docker container with HTTPS Enabled. This includes creating a dedicated self-signed development certificate, configuring user secrets and passing in the necessary environment variables to the container to enable HTTPS. We further configure this with Docker Compose for ease of use and reuse going forward.

In this step by step tutorial I take you through how to package your ASP.NET Core app as a Docker Image and then run your image as a Docker container with HTTPS Enabled. This includes creating a dedicated self-signed development certificate, configuring user secrets and passing in the necessary environment variables to the container to enable HTTPS. We further configure this with Docker Compose for ease of use and reuse going forward.

Level: Beginner / Intermediate

💻 Code on GitHub: https://github.com/binarythistle/S03E05---Docker-HTTPS-and-ASPNET-Core 🔗 Install Docker Desktop Via WSL: https://docs.docker.com/docker-for-windows/install-windows-home/ 🔗 Docker Net Core Set Up: https://docs.docker.com/engine/examples/dotnetcore/ 🔗 HTTPS & Docker Microsoft Doc: https://github.com/dotnet/dotnet-docker/blob/master/samples/run-aspnetcore-https-development.md

⏲️-Time Codes-⏲️

  • 1:33 - Course Outline
  • 3:13 - Demo
  • 6:13 - Overview of Docker
  • 10:23 - Scaffold Up API
  • 18:40 - Build Docker Image
  • 24:48 - Run Our Inage (without HTTPS)
  • 27:39 - Some Container housekeeping
  • 31:32 - Generate Dev Certifcate for Container
  • 35:15 - Configuring User Secrets
  • 42:12 - Rebuild our image (with User Secrets)
  • 43:32 - Overview of Docker Run parameters
  • 48:26 - Run our Container with HTTPS (Docker CLI)
  • 49:40 - Migrate and Run in Docker Compose
  • 56:40 - Certificate file name case sensitivity
  • 58:20 - Final Thoughts
  • 58:52 - Patreon Supporter Credits

docker aspdotnet

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Docker Tutorial for Beginners 8 - Build and Run C++ Applications in a Docker Container

Welcome to this on Docker Tutorial for Beginners. In this video provides an Introduction on C++ development with Docker containers. So we will see How to ship C++ Programs in Docker.

Docker: Installing Docker and Understanding basic docker commands

“Docker: Understanding Docker Architecture and Components”, The First thing we are going to do is to run the “docker run hello-world” command. This command tries to find the “hello-world” image locally and if not found, it then downloads an image from the docker hub and runs the container out of this image.

WordPress in Docker. Part 1: Dockerization

This entry-level guide will tell you why and how to Dockerize your WordPress projects.

Docker: Manage Data in Docker -Understanding “Docker Volumes” and “Bind Mounts”

Manage Data in Docker -Understanding “Docker Volumes” and “Bind Mounts”. Volumes are stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes/ on Linux). Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker.