提交 884491d7 编写于 作者: S Simen Eriksen 提交者: Asher

Update Dockerfile to fix EACCES issue on mount (#1191)

https://github.com/cdr/code-server/issues/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)
上级 e14362f3
...@@ -49,6 +49,8 @@ USER coder ...@@ -49,6 +49,8 @@ USER coder
# We create first instead of just using WORKDIR as when WORKDIR creates, the # We create first instead of just using WORKDIR as when WORKDIR creates, the
# user is root. # user is root.
RUN mkdir -p /home/coder/project RUN mkdir -p /home/coder/project
# To avoid EACCES issues on f.ex Crostini (ChromeOS)
RUN mkdir -p /home/coder/.local/code-server
WORKDIR /home/coder/project WORKDIR /home/coder/project
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册