Difficulty: beginner
Estimated Time: 10-15 minutes

In this scenario, you'll learn how to deploy an ASP.NET Core application with .NET Core as a Docker Container.

The environment is connected to a sandboxed Docker instance, and the code for a default ASP.NET Core application is in the working directory. To view the code use ls and cat <filename>

The machine name Docker is running on is called docker. If you want to access any of the services then use docker instead of localhost or 0.0.0.0.

Deploying ASP.NET Core as a Docker Container

Step 1 of 6

Step 1 - Example Application

The example application is a ASP.NET Core MVC API. Packages and dependencies are downloaded from NuGet.

The application is configured to listen on port 5000. It has a single endpoint that returns the hostname of the container. You can see the endpoint code in Controllers/IndexController.cs

Dockerfile
This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]