Replies: 2 comments
-
https://github.com/wagoodman/dive is a great tool for inspecting the file system, including permissions. That will allow you to target your chiseled container image. Can you show how your Dockerfile is configured? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try this: WORKDIR /app |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to run a .Net Core web app in the
mcr.microsoft.com/dotnet/nightly/aspnet:7.0-jammy-chiseled
chiseled container. It works fine when run in the regularmcr.microsoft.com/dotnet/aspnet:7.0
container. It also runs fine in the chiseled container when I usedocker run -u root
. But when run without-u root
, I get an exception:I think it should also be able to run as the non-root user (whose UID is 101, if I understand correctly).
I'm copying my app files using the
--chown 101
argument and on the non-chiseled container I can see all permissions getting set properly. So the folder/ServerMock
and its contents are owned by UID 101. That folder is also the current working directory. However, on the chiseled container there's no shell and no easy way, that I know of, to check file permissions.Does anybody know a fix?
Beta Was this translation helpful? Give feedback.
All reactions