适用于.NET应用的openEuler运行时镜像。

下载次数: 0状态:社区镜像维护者:openEuler 官方容器镜像仓库类型:镜像最近更新:
下载命令
点击查看

Quick reference

  • The official Dotnet Runtime (.NET Runtime) docker image.

  • Maintained by: https://gitee.com/openeuler/cloudnative.

  • Where to get help: https://gitee.com/openeuler/cloudnative, https://gitee.com/openeuler/community.

Dotnet Runtime (.NET Runtime) | openEuler

Current Dotnet Runtime (.NET Runtime) docker images are built on the https://repo.openeuler.org/. 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⁠.

Supported tags and respective Dockerfile links

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
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.12/24.03-lts-sp4/Dockerfiledotnet-runtime 10.0.12 on openEuler 24.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.0/24.03-lts-sp4/Dockerfiledotnet 10.0.0 on openEuler 24.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.0/24.03-lts-sp2/Dockerfiledotnet 10.0.0 on openEuler 24.03-LTS-SP2amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.3/22.03-lts-sp3/DockerfileDotnet-runtime 8.0.3 on openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.7/22.03-lts-sp3/DockerfileDotnet-runtime 8.0.7 on openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.8/22.03-lts-sp3/DockerfileDotnet-runtime 8.0.8 on openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/20.03-lts-sp4/DockerfileDotnet-runtime 8.0.10 on openEuler 20.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp1/DockerfileDotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP1amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp3/DockerfileDotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP3amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp4/DockerfileDotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP4amd64, arm64
https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/24.03-lts/DockerfileDotnet-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

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

    bash
    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

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

    bash
    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 https://gitee.com/openeuler/openeuler-docker-images.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 dotnet-runtime 镜像标签

docker pull docker.xuanyuan.run/openeuler/dotnet-runtime:<标签>

DockerHub 原生拉取命令

docker pull openeuler/dotnet-runtime:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告