openeuler/dotnet-deps当前Dotnet-deps(.NET Deps) Docker镜像基于openEuler构建,该仓库可免费使用且无每用户速率限制。
Dotnet-deps(.NET Deps)镜像供开发者用于构建独立的.NET和ASP.NET应用层,仅包含运行标准自包含.NET应用所需的运行时依赖,具体包括:ca-certificates、glibc、libgcc、libicu、openssl-libs、libstdc++、tzdata、zlib。
了解更多关于Dotnet-deps(.NET Deps)的信息,请访问learn.microsoft.com。
每个dotnet-deps Docker镜像的标签由dotnet-deps版本和基础镜像版本组成,详情如下:
| 标签 | 说明 | 架构 |
|---|---|---|
| 8.0-oe2203sp3 | 包含在openEuler 22.03-LTS-SP3上运行8.0.x版本标准自包含.NET应用所需的运行时依赖 | amd64, arm64 |
用户可根据需求选择对应的{Tag}。
bashdocker pull openeuler/dotnet-deps:{Tag}
bashdocker run -d --name my-dotnet-deps openeuler/dotnet-deps:{Tag}
bashdocker logs -f my-dotnet-deps
bashdocker run -it --name my-dotnet-deps openeuler/dotnet-deps:{Tag} /bin/bash
bashgit clone [***] cd dotnetcore-docs-hello-world
打开dotnetcoresample.csproj文件,更新为以下内容:
xml<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net{x.x}</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <RuntimeIdentifiers>linux-x64;linux-arm64</RuntimeIdentifiers> </PropertyGroup> </Project>
将{x.x}替换为所需的.NET版本。
bashdotnet publish -c Release -o /app -r linux-x64 --self-contained true
执行过程中会显示以下关键信息:
Determining projects to restore... All projects are up-to-date for restore. dotnetcoresample -> /home/deps/dotnetcore-docs-hello-world/bin/Release/net{x.x}/linux-x64/dotnetcoresample.dll dotnetcoresample -> /app/
bashdocker run --rm -v /app:/app openeuler/dotnet-deps:{Tag} /app/dotnetcoresample
注意:发布应用时使用的.NET版本{x.x}必须与{Tag}指定的版本匹配。
如有任何问题或需要使用特定功能,请在openeuler-docker-images提交issue或pull request。

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