.NET 8.0 容器发行注记


.NET 8.0

Red Hat Customer Content Services

摘要

.NET 8.0 容器发行注记提供了组成 .NET 8.0 平台的功能的高级信息,并记录了本发行版本中已知的问题。

使开源包含更多

红帽致力于替换我们的代码、文档和 Web 属性中有问题的语言。我们从这四个术语开始:master、slave、黑名单和白名单。由于此项工作十分艰巨,这些更改将在即将推出的几个发行版本中逐步实施。详情请查看 CTO Chris Wright 的信息

对红帽文档提供反馈

我们感谢您对我们文档的反馈。让我们了解如何改进它。

通过 Jira 提交反馈(需要帐户)

  1. 登录到 Jira 网站。
  2. 在顶部导航栏中点 Create
  3. Summary 字段中输入描述性标题。
  4. Description 字段中输入您对改进的建议。包括到文档相关部分的链接。
  5. 点对话框底部的 Create

第 1 章 新功能

.NET 8.0 容器发行注记是 .NET 8.0 RPM 软件包发行注记的扩展。有关已知问题 、操作系统架构、隐私和支持的信息,请参阅 .NET 8.0 RPM 软件包 的发行注记。

第 2 章 已知问题

  1. nodejs 不再包含在 .NET 8.0 SDK 镜像中。

    有关如何将依赖于 Node.NET 版本的应用程序从以前的 .NET 版本移植到 .NET 8.0 镜像的详情,请参考使用 .NET 8.0 UBI 镜像构建带有 NodeJS 前端的 web 应用程序

  2. OpenShift Container Platform 使用的随机用户不再添加到 OpenShift Container Platform 3.11 上的 /etc/passwd 文件中。因此,.NET Environment.UserName 属性返回一个空字符串。
  3. DOTNET_CORE_VERSIONDOTNET_FRAMEWORK 环境变量已从镜像中删除。相反,镜像现在包含准确版本的 .NET 框架、ASP.NET Core 框架和 DOTNET_VERSION 中的 SDK 版本、ASPNET_VERSIONDOTNET_SDK_VERSION 环境变量。
  4. 用于从额外目录加载证书的 DOTNET_SSL_DIRS 环境变量不再由镜像入口点处理。默认 s2i (source-to-image) assemblerun 脚本仍然处理环境变量。要信任所有情况下的证书,请使用 SSL_CERT_DIR
  5. 在 .NET 8.0 中,您无法将命令及其参数指定为在单个字符串在容器中运行。您需要将参数作为单独的字符串传递。新的语法也适用于以前的 .NET 版本。

    例如,使用 podman run registry.access.redhat.com/ubi8/dotnet-70 "echo hello",使用 podman run registry.access.redhat.com/ubi8/dotnet-80 echo hello

  6. dnf 命令不可用。

    为减小镜像大小,.NET 8.0 容器镜像使用 ubi-minimal 基础镜像,而不是 ubi 基础镜像。ubi-minimal 镜像使用 microdnf 命令作为其软件包管理器,而不是 dnf 命令。

    如果您的 Dockerfiles/Containerfiles 使用 dnf 命令,则必须将它们更改为使用 microdnf 命令。

    有关 microdnf 命令的详情请参考 microdnf man page。

如需已知问题 列表,请参阅 .NET 8.0 RPM 软件包的 .NET 8.0 发行注记中的已知问题。

法律通告

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部