Skip to content
This repository was archived by the owner on Feb 3, 2019. It is now read-only.

Commit aa771b2

Browse files
committed
Merge pull request #11 from ravicious/fix-permissions-on-os-x
Dockerfile: create user with uid 1000
2 parents f7fcb50 + e8e5b25 commit aa771b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ RUN apt-get update \
88
&& apt-get install -y git build-essential file wget python libjemalloc1 llvm;
99

1010
# create & get cross user and drop root privileges
11+
#
12+
# On OS X, the user needs to have uid set to 1000
13+
# in order to access files from the shared volumes.
14+
# https://medium.com/@brentkearney/docker-on-mac-os-x-9793ac024e94
1115
RUN groupadd --system cross \
12-
&& useradd --create-home --system --gid cross cross;
16+
&& useradd --create-home --system --gid cross --uid 1000 cross;
1317
USER cross
1418
ENV HOME=/home/cross \
1519
URL_GIT_RUST=https://github.com/rust-lang/rust.git \

0 commit comments

Comments
 (0)