Skip to content

Get files from chiseled image running in K8s as container #5210

Answered by lbussell
McMlok asked this question in Q&A
Discussion options

You must be logged in to vote

[Triage] You will need to access /proc/PID/root while running as a user with the same PID as your Chiseled container. It looks like kubectl debug has the option --as-uid (source). You could try and use that in combination with using one of our runtime-deps images (like mcr.microsoft.com/dotnet/runtime-deps:8.0-jammy) as the ephemeral container since it already contains the user app with the UID 1654 (you can also access this from outside the image by checking the environment variable APP_UID).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@McMlok
Comment options

Answer selected by McMlok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants