Pull a PodArmor .NET Image
Pull the PodArmor .NET image using the following command, with the version you want to use:Create a .NET container
1
Create a .NET application container
Create a new directory
mkdir dotnet-quickstart && cd dotnet-quickstart and create a Program.cs file with the following content:2
Create a Dockerfile
Create a
Dockerfile with the following content:3
Build the Docker image
Build the Docker image using the following command:
4
Run the Docker container
Run the Docker container using the following command:
Create a .NET runtime container
1
Initialize Project
Create a new directory
mkdir dotnet-project && cd dotnet-project.Create a Program.cs file with a JSON serialization example:2
Create Project File
Create a
dotnet-project.csproj file with the following content:3
Create a Dockerfile
Create a
Dockerfile with the following content:4
Build the Docker image
Build the Docker image using the following command:
5
Run the Docker container
Run the Docker container using the following command: