Replies: 3 comments
-
Thanks for the solid repro. At the point The
The only reason I could figure this would happen is if for some reason the chiseled image runs as a non-root user, so I switched back to using The next thing I did is search our chiseled Dockerfile definition to see where we're changing the user from the @mthalman It looks like you made the change to switch away from running chiseled container applications as root in #4115. Why does this only affect It seems far more ergonomic to continue running containers applications as root given the way that mounting volumes works by default as this issue demonstrates. I'm moving this to the dotnet-docker repo for follow up. |
Beta Was this translation helpful? Give feedback.
-
Yes, the intention with the Chiseled Ubuntu images is to provide a more security-hardened environment. This differs from our other images because of the nature of having a more open system that can be updated. For example, our regular images have a package manager and shell available to allow you to install additional packages. We leave these as the root user to better enable these types of scenarios and to have a better overall experience. But the Chiseled images are much more constrained environment that lacks the tools that you would use to further customize the image and the need for a root user. And because the intent of Chiseled is to have a stripped down image for security purposes, it just makes more sense to continue that further and have a non-root user as the default. So, if there is going to be volume mounting with the Chiseled container, you have two options:
Let us know if you have further questions on configuring this or any thoughts on the overall Chiseled Ubuntu offering. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Describe the bug
DataProtection set up fails when running an ASP.NET Core 7.0 app in a Docker container on Linux.
Running on latest Docker Desktop with WSL2 integration (busybox in WSL2)
Related issue: dotnet/aspnetcore#2941
I am assuming the original bug was never fixed, and that it was reintroduced by using File.Move with this merge
Expected Behavior
No errors when running on Windows
Example:
Steps To Reproduce
Simplest repro
Exceptions (if any)
.NET Version
7.0.100
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions