Skip to content

Commit 884491d

Browse files
simeneriks1code-asher
authored andcommitted
Update Dockerfile to fix EACCES issue on mount (#1191)
#1188 Fixes issue with permissions mounting in directories in the container. Folders are generated by root causing issues when the container user "coder" wants to create sub-folders. This fix solves it, at least on Crostini (ChromeOS)
1 parent e14362f commit 884491d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ USER coder
4949
# We create first instead of just using WORKDIR as when WORKDIR creates, the
5050
# user is root.
5151
RUN mkdir -p /home/coder/project
52+
# To avoid EACCES issues on f.ex Crostini (ChromeOS)
53+
RUN mkdir -p /home/coder/.local/code-server
5254

5355
WORKDIR /home/coder/project
5456

0 commit comments

Comments
 (0)