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

running docker as current user conflicts with /deps and /deps-build #235

Open
steabert opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@steabert
Copy link

I'm running xgo with the option:

-dockerargs "-u,$(id -u):$(id -g)"

so that the docker image is run as the current user. This prevents xgo from creating any root-owned files in some of the mounted volumes (since it automatically mounts ~/go and ~/.xgo-cache`).

This works great for me, but I noticed that the build script complains about not being able to create /deps and/or /deps-build (as you would need to be root in the container). I don't use that feature, but I wondered if it would be possible to also couple these to user-owned directories somehow? That would allow xgo to maybe by default run as the current user, which is IMHO a much better solution than trying to chown after the fact.

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