From 605beffb3e011d8a3bb9978019759a311c1b4d28 Mon Sep 17 00:00:00 2001 From: Simen Eriksen <41788048+simeneriks1@users.noreply.github.com> Date: Thu, 21 Nov 2019 17:17:06 +0100 Subject: [PATCH] Update Dockerfile to fix EACCES issue on mount 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 f4e2923e5ed9..6341e36b18cd 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