You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
The result of running this docker command is that code-server accesses the current working directory as root, rather than the current user. This is almost certainly not what the user intended.
For this use-case (simply editing the user's workspace), the --user option should be used to execute code-server as non-root. However, code-server borks out for various reasons if you try that. The workspace folder, for example, is not world-editable. Those issues should be sorted out, and the Docker example in the README should be updated.
The text was updated successfully, but these errors were encountered:
The README contains the following docker command:
docker run -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
The result of running this docker command is that code-server accesses the current working directory as root, rather than the current user. This is almost certainly not what the user intended.
For this use-case (simply editing the user's workspace), the
--user
option should be used to execute code-server as non-root. However, code-server borks out for various reasons if you try that. The workspace folder, for example, is not world-editable. Those issues should be sorted out, and the Docker example in the README should be updated.The text was updated successfully, but these errors were encountered: