-
Notifications
You must be signed in to change notification settings - Fork 377
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
docker-machine support #389
Comments
I'm having the same issue. From looking at the code it grabs the UID of the current user. (Pretty sure Mac OS doesn't use /etc/passwd in the traditional way anymore). @sxul Curious how did you change the user ID that is passed? Did you modify the source? |
543: Added environment variables to control the UID and GID in the container r=Dylan-DPC a=UebelAndre `CROSS_CONTAINER_UID` and `CROSS_CONTAINER_GID` can now be used to control the user and group ID's passed to Docker. I ran into this when trying to setup a Github-Action that runs on MacOS and uses docker-machine which wasn't working. I then found #389 which described the solution of updating the UID and GID which I've confirmed works. This change should make it easier for users to solve for the same issue without making a fork. Co-authored-by: Andre Brisco <andre.brisco@gmail.com>
Just a heads up, as of 58bfd65 you can now use I've tested this using a github action that runs docker on macos and posted the yaml here: #543 (comment) |
I'm using docker-machine on Mac OS 10.15.
When I try to run
cross build --target x86_64-unknown-linux-gnu
I get this error:
I found a simple solution is replace
"--user" "501:20"
to"--user" "1000:20"
, and it works fine.I don't know how the mac user system works, it looks like I can't find users id 501 and 1000 in /etc/passwd
The text was updated successfully, but these errors were encountered: