Skip to content
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

img buld has issue with access files in image when running in k8s with root user #318

Open
pangzhj opened this issue Dec 28, 2020 · 0 comments

Comments

@pangzhj
Copy link

pangzhj commented Dec 28, 2020

When running in a pod in k8s, img has problem access file during build. img is running with root user in the pod. While running in ubuntu with non-root user, there is no such problem.

RUN ls -l /root/.nuget/plugins/netcore/CredentialProvider....
#9 5.770 -rwxrwxrwx 1 root root 120712 Jun 18 2020 /root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll
#9 DONE 5.8s

Determining projects to restore...
#14 21.53 /usr/share/dotnet/sdk/3.1.301/NuGet.targets(128,5): error : Problem starting the plugin '/root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll'. No such file or directory [/build/WebAPIs/Subscription/Subscription.csproj]
#14 22.03 /usr/share/dotnet/sdk/3.1.301/NuGet.targets(128,5): error : Unable to load the service index for source https://visionlink.pkgs.visualstudio.com/_packaging/VSS/nuget/v3/index.json. [/build/WebAPIs/Subscription/Subscription.csproj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant