浏览代码

[ Fixing Permission Error ] (#1842)

- Inside container, we can't change /etc files without root permissions
Lucas Caponi da Silva 6 年之前
父节点
当前提交
bbff18c631
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ide-theia/Dockerfile

+ 3 - 1
ide-theia/Dockerfile

@@ -2,4 +2,6 @@ FROM theiaide/theia
 
 LABEL maintainer="ahkui <ahkui@outlook.com>"
 
-RUN echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf
+USER root
+
+RUN echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf