-
Notifications
You must be signed in to change notification settings - Fork 865
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
[BUG]: Large UIDs on alpine images cause initialize job to fail #4519
Comments
Hi @tiehfood, thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon. |
This is quiet important for us. We evaluate migrating a project from GitLab to Azure DevOps. |
This issue has had no activity in 180 days. Please comment if it is not actually stale |
@tiehfood thanks for reporting this. The fix is implemented and will be available in the following agent release. If the
There were some issues that require to have same user ID and group ID as on the host on which the agent is running. Now it is the default behavior that we cannot change. If you want, you can create a feature request regarding this question and describe your suggestion in more detail. Probably it can be implemented as boolean inputs (additional for the |
What happened?
My user on the host running the agent has a very large UID. This causes problems with the
adduser
command on alpine images:The suggested solution is to use
useradd
instead, as this could handle large UIDs.I think this was also the intention, as the shadow package including this command is listed as dependency for alpine images in the Microsoft tutorial. But this command is never used (
azure-pipelines-agent/src/Agent.Worker/ContainerOperationProvider.cs
Line 626 in c313e3e
Is there any reason why adduser is used instead?
Why at all is there a user created with the same UID than the local one? Doesn't this break images, which require a specific user defined in the Dockerfile or even need to be executed as root?
Versions
latest / RHLE 8
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version controll system
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: