openeuler/dotnet-runtime

Sponsored OSS

By openeuler

Updated 3 months ago

openEuler runtime image for .NET apps.

Image
Languages & frameworks
0

877

openeuler/dotnet-runtime repository overview

Quick reference

Dotnet Runtime (.NET Runtime) | openEuler

Current Dotnet Runtime (.NET Runtime) docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

.NET is a free, cross-platform, open-source developer platform for building many kinds of applications. It can run programs written in multiple languages, with C# being the most popular. It relies on a high-performance runtime that is used in production by many high-scale apps.

Learn more about Dotnet Runtime on learn.microsoft.com⁠.

The tag of each dotnet-runtime docker image is consist of the version of dotnet-runtime and the version of basic image. The details are as follows

TagCurrentlyArchitectures
10.0.0-oe2403sp2dotnet 10.0.0 on openEuler 24.03-LTS-SP2amd64, arm64
8.0.3-oe2203sp3Dotnet-runtime 8.0.3 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.7-oe2203sp3Dotnet-runtime 8.0.7 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.8-oe2203sp3Dotnet-runtime 8.0.8 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.10-oe2003sp4Dotnet-runtime 8.0.10 on openEuler 20.03-LTS-SP4amd64, arm64
8.0.10-oe2203sp1Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP1amd64, arm64
8.0.10-oe2203sp3Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP3amd64, arm64
8.0.10-oe2203sp4Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP4amd64, arm64
8.0.10-oe2403ltsDotnet-runtime 8.0.10 on openEuler 24.03-LTSamd64, arm64

Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/dotnet-runtime image from docker

    docker pull openeuler/dotnet-runtime:{Tag}
    
  • Start a dotnet-runtime instance

    docker run -d --name my-dotnet-runtime openeuler/dotnet-runtime:{Tag}
    
  • An example with HelloWorld application example

    1. Create a HelloWorld.csproj file with the following content

      <Project Sdk="Microsoft.NET.Sdk">
        <PropertyGroup>
       	  <OutputType>Exe</OutputType>
       	  <TargetFramework>net8.0</TargetFramework>
       	  <ImplicitUsings>enable</ImplicitUsings>
       	  <Nullable>enable</Nullable>
        </PropertyGroup>
      </Project>
      
    2. Create a Program.cs file with the following code

       Console.WriteLine("Hello, World!");
      
    3. Publish the .NET application (you need the "dotnet8" package)

       dotnet publish -c Release -o app
      
    4. Run the app with "openeuler/dotnet-runtime:8.0.3-oe2203sp3"

       docker run --rm -v $PWD/app:/app openeuler/dotnet-runtime:8.0.3-oe2203sp3 /app/HelloWorld.dll 
       Hello, World!
       
      
  • View container running logs

    docker logs -f my-dotnet-runtime
    
  • To get an interactive shell

    docker run -it --entrypoint /bin/bash --name my-dotnet-runtime openeuler/dotnet-runtime:{Tag}
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:85ed195da

Size

96.9 MB

Last updated

3 months ago

Requires Docker Desktop 4.37.1 or later.

This week's pulls

Pulls:

6

Feb 2 to Feb 8