-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default .NET 8 container images to use the app
user
#373
Comments
I'm not sure if sdk-container-builds supports Windows. For Windows, we are not adding |
We do not currently due to but hopefully will thanks to #343, so we should be forward-looking here as well. Updated the OP with the Windows User and scenario. |
Per dotnet/dotnet-docker#4451 (comment), we should bias towards using the user id instead of the user name for our home-grown users (and probably also document that some engines like Kubernetes work better with ids), and so we should use 64198 instead of |
I will have more content written on this topic soon. |
Thanks for the heads-up, will extract this to a separate issue. |
Requires #115 and #198.
For .NET 8 Containers Microsoft provides a non-root user named
app
. We should default folks into running rootless, so we should setContainerUser
according to the following decision tree.ContainerBaseImage
is dotnet/runtime-deps, dotnet/runtime, or dotnet/aspnet andContainerImageTags
contains any 8.0 tag (including previews and/or rc tags) thenContainerRuntimeIdentifier
is a Windows RID then useContainerUser
, else if theContainerRuntimeIdentifier
is a Linux RID then useapp
, otherwiseContainerUser
The text was updated successfully, but these errors were encountered: