Parcourir la source

[ Fixing Permission Error ] (#1842)

- Inside container, we can't change /etc files without root permissions
Lucas Caponi da Silva il y a 6 ans
Parent
commit
bbff18c631
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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