openeuler/dotnet-aspnetThe official Dotnet-aspnet(ASP.NET Core) docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current Dotnet-aspnet(ASP.NET Core) docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
Dotnet-aspnet (ASP.NET Core) is an open source cross-platform framework for building modern cloud-based Internet-connected applications, such as web applications, IoT applications, and mobile backends. ASP.NET Core applications run on .NET.
Learn more about Dotnet-aspnet(ASP.NET Core)(ASP on learn.microsoft.com.
The tag of each dotnet-aspnet docker image is consist of the version of dotnet-aspnet 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-aspnet 8.0.3 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.7-oe2203sp3 | Dotnet-aspnet 8.0.7 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.8-oe2203sp3 | Dotnet-aspnet 8.0.8 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.10-oe2003sp4 | Dotnet-aspnet 8.0.10 on openEuler 20.03-LTS-SP4 | amd64, arm64 |
| 8.0.10-oe2203sp1 | Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP1 | amd64, arm64 |
| 8.0.10-oe2203sp3 | Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 8.0.10-oe2203sp4 | Dotnet-aspnet 8.0.10 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 8.0.10-oe2403lts | Dotnet-aspnet 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-aspnet image from docker
bashdocker pull openeuler/dotnet-aspnet:{Tag}
Start a dotnet-aspnet instance
bashdocker run -d --name my-dotnet-aspnet -p 8080:8080 openeuler/dotnet-aspnet:{Tag}
After my-dotnet-aspnet is started, access the service through http://localhost:8080.
An example with HelloWorld application example
Obtain the dotnetcore-docs-hello-world source code and navigate to the root directory.
git clone [***] cd dotnetcore-docs-hello-world
Modify the .NET Version for Application Publishing
Open the dotnetcoresample.csproj file, and replace {x.x} in <TargetFramework>net{x.x}</TargetFramework> with the desired .NET version.
Publish the application.
dotnet publish -c Release -o /app --self-contained false
During execution, the following key information will be displayed:
Determining projects to restore... All projects are up-to-date for restore. dotnetcoresample -> /tmp/dotnetcore-docs-hello-world/bin/Release/net{x.x}/dotnetcoresample.dll dotnetcoresample -> /app/
Run the application using openeuler/dotnet-aspnet:{Tag}
docker run --rm -v /app:/app -p 8080:8080 openeuler/dotnet-aspnet:{Tag} /app/dotnetcoresample.dll
Note: The .NET version {x.x} used for publishing the application must match the version specified by {Tag}.
View container running logs
bashdocker logs -f my-dotnet-aspnet
To get an interactive shell
bashdocker run -it --entrypoint /bin/bash --name my-dotnet-aspnet -p 8080:8080 openeuler/dotnet-aspnet:{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.



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务