适用于.NET应用的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
| Tag | Currently | Architectures |
|---|---|---|
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.12/24.03-lts-sp4/Dockerfile | dotnet-runtime 10.0.12 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.0/24.03-lts-sp4/Dockerfile | dotnet 10.0.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/10.0.0/24.03-lts-sp2/Dockerfile | dotnet 10.0.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.3/22.03-lts-sp3/Dockerfile | Dotnet-runtime 8.0.3 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.7/22.03-lts-sp3/Dockerfile | Dotnet-runtime 8.0.7 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.8/22.03-lts-sp3/Dockerfile | Dotnet-runtime 8.0.8 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/20.03-lts-sp4/Dockerfile | Dotnet-runtime 8.0.10 on openEuler 20.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp1/Dockerfile | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP1 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp3/Dockerfile | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/22.03-lts-sp4/Dockerfile | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dotnet-runtime/8.0.10/24.03-lts/Dockerfile | Dotnet-runtime 8.0.10 on openEuler 24.03-LTS | amd64, arm64 |
Usage
In this usage, users can select the corresponding {Tag} based on their requirements.
-
Pull the
openeuler/dotnet-runtimeimage from dockerbashdocker pull openeuler/dotnet-runtime:{Tag} -
Start a dotnet-runtime instance
bashdocker run -d --name my-dotnet-runtime openeuler/dotnet-runtime:{Tag} -
An example with HelloWorld application example
-
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> -
Create a Program.cs file with the following code
Console.WriteLine("Hello, World!"); -
Publish the .NET application (you need the "dotnet8" package)
dotnet publish -c Release -o app -
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
bashdocker logs -f my-dotnet-runtime -
To get an interactive shell
bashdocker 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.
openeuler 命名空间的其他可用镜像:
openeuler/openeuler
openeuler/open-webui
openeuler/openclaw
openeuler/opencode
openeuler/vllm-ascend
openeuler/kylin
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 dotnet-runtime 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务