Ogeon / rust-on-raspberry-pi

[OUTDATED] Instructions for how to cross compile Rust projects for the Raspberry Pi
292 stars 15 forks source link

Dockerfile: create user with uid 1000 #11

Closed ravicious closed 8 years ago

ravicious commented 8 years ago

Fixes permission errors on OS X:

The “/Users” folder will be automatically mounted in the VM, and the mount will be owned by a user named “docker” with a uid number of 1000.

If you want to access files within the /Users share from your Docker container, then you should do so as a user with uid 1000, otherwise you will likely have permissions errors.

https://medium.com/@brentkearney/docker-on-mac-os-x-9793ac024e94

Ogeon commented 8 years ago

Oh, I didn't think about that, but I agree. It would be useful for anyone who looks into the code and wonders where that came from.

Ogeon commented 8 years ago

Great! Looks like this is good to go.