openEuler runtime image for .NET apps.
877
The official Dotnet Runtime (.NET Runtime) docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, 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
| Tag | Currently | Architectures |
|---|---|---|
| 10.0.0-oe2403sp2 | dotnet 10.0.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 8.0.3-oe2203sp3 | Dotnet-runtime 8.0.3 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.7-oe2203sp3 | Dotnet-runtime 8.0.7 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.8-oe2203sp3 | Dotnet-runtime 8.0.8 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.10-oe2003sp4 | Dotnet-runtime 8.0.10 on openEuler 20.03-LTS-SP4 | amd64, arm64 |
| 8.0.10-oe2203sp1 | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP1 | amd64, arm64 |
| 8.0.10-oe2203sp3 | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.10-oe2203sp4 | Dotnet-runtime 8.0.10 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 8.0.10-oe2403lts | Dotnet-runtime 8.0.10 on openEuler 24.03-LTS | amd64, arm64 |
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
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
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}
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:85ed195da…
Size
96.9 MB
Last updated
3 months ago
Requires Docker Desktop 4.37.1 or later.
Pulls:
6
Feb 2 to Feb 8