Chapter 3. Known issues for containers
Red Hat .NET container images are optimized for minimal footprint and security, which results in differences from standard environments. For instance, to reduce image size, full-featured package managers are replaced with lightweight alternatives.
The following known issues apply to the .NET 10.0 container images:
The
dnfcommand is not availableTo reduce image size, the .NET 10.0 container images are based on the
ubi-minimalbase image instead of the standardubiimage. Theubi-minimalimage providesmicrodnfas its package manager, notdnf.If your Dockerfiles or Containerfiles use the
dnfcommand, you must update them to usemicrodnfinstead.For more information, see the
microdnf(8)man page.UBI-prefixed repositories no longer use .NET version tags
The UBI-prefixed repositories (for example,
ubi9/dotnet-100andubi9/dotnet-100-runtime) no longer include tags for the .NET version.Following the standard for UBI repositories, tagging is now based on the RHEL version. To get the latest version, either omit the tag (which defaults to
latest) or explicitly use thelatesttag.ASP.NET Core runtime is in a separate image
Starting with .NET 10.0, the .NET runtime images (for example,
registry.access.redhat.com/ubi9/dotnet-100-runtime) no longer include the ASP.NET Core runtime.If your application requires the ASP.NET Core runtime, you must use the new ASP.NET Core runtime image (for example,
registry.access.redhat.com/ubi9/dotnet-100-aspnet).ASP.NET Core runtime is in a separate ImageStream
Starting with .NET 10.0, the s2i-dotnetcore OpenShift
dotnet-runtimeImageStream no longer includes the ASP.NET Core runtime.If your application requires the ASP.NET Core runtime, you must use the new
dotnet-aspnetImageStream instead.The default
WORKDIRis/instead of/opt/app-root/appStarting with .NET 10.0, the .NET runtime and ASP.NET Core container images use
/as the default working directory. This change aligns Red Hat images with the default used by other vendors.The
WORKDIRinstruction sets the working directory for any subsequentRUN,CMD,ENTRYPOINT,COPY, andADDinstructions. If your Dockerfiles or Containerfiles rely on the previous default working directory, you must add an explicitWORKDIRdirective. For example:WORKDIR /app
For a list of known issues related to the core RPM packages, see the Known Issues section in the .NET 10.0 Release Notes for .NET 10.0 RPM packages.