-
Notifications
You must be signed in to change notification settings - Fork 5.9k
error EACCES: permission denied, open '/home/coder/.config/code-server' #4166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@code-asher any ideas on what this might be caused by? |
I'm new to the coder. got the same error on Opensuse tumbleweed, Podman version 3.4.4
I was only able to try coder using commands from here https://github.com/coder/deploy-code-server/tree/main/deploy-container
|
@oshanz The short explanation is that without it being privileged the coder container won't be able to create the local bind mounted directories and files, RHEL doesn't by default allow docker to write to local directories easily. In your case Your example would then be... docker run -p 127.0.0.1:8080:8080 --privileged \
-v "$PWD/project:/home/coder/project" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
-e "PASSWORD=12345" \
-it bencdr/code-server-deploy-container:latest |
I am closing my issue as the above resolved it, feel free to open back up if you all deem it needed. Thanks! |
For anyone coming here in future, |
OS/Web Information
code-server --version
: Latest as of today's dockerSteps to Reproduce
Expected
App should start
Actual
After running
mkdir -p .config/code-server
in my coder directoryLogs
This issue can be reproduced in VS Code: No
Note:
Looks like this was being worked in this closed thread... #2234 The statement was made there to start another thread, so here I am!
The text was updated successfully, but these errors were encountered: