-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Unable to start 'cdr/code-server' in Docker container: “error EACCES: permission denied, mkdir '/home/coder/.config/code-server'” #2234
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
It looks like it might have something to do with the permissions on
$HOME/.config, although that seems unusual.
Are you able to write to that directory? For example with
`mkdir -p $HOME/.config/code-server`? You might need to do something
like `chown $USER $HOME/.config`.
|
This has been fixed and the docker command example has been updated. See https://github.com/cdr/code-server/blob/v3.8.0/doc/install.md#docker
|
I'm running into the same error using this command on rhel7. @skbergam has this been fixed for you? Is anyone else facing the same? |
@brootware please open a GitHub Discussion or a bug report if you're experiencing issues! |
What worked for me is (with inside docker support with sudo):
|
@yonixw Thanks a bunch! I was running into this problem all night long. None of the commands from the document working. |
cd ~/code-server |
Here's my script:
Then I disconnect from ssh, connect back, and run this command:
The error I get is
error EACCES: permission denied, mkdir '/home/coder/.config/code-server'
.This is on a brand new EC2 instance. Any ideas? I've been banging my head on this and I don't know how to debug further. I've tried removing the
-e
and-u
options from the command but those don't seem to have any effect, both with and without running docker with sudo but to no avail. Thank you!The text was updated successfully, but these errors were encountered: