From 884491d72be13c93b6172308d44fbd2146643ade Mon Sep 17 00:00:00 2001 From: Simen Eriksen <41788048+simeneriks1@users.noreply.github.com> Date: Thu, 5 Dec 2019 20:38:03 +0100 Subject: [PATCH] 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) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f4e2923e..6341e36b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,8 @@ USER coder # We create first instead of just using WORKDIR as when WORKDIR creates, the # user is root. 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