Skip to content

No Permissions running in Docker #673

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

Closed
David-van-der-Sluijs opened this issue May 10, 2019 · 6 comments
Closed

No Permissions running in Docker #673

David-van-der-Sluijs opened this issue May 10, 2019 · 6 comments
Labels
bug Something isn't working waiting-for-info Waiting for more information from submitter

Comments

@David-van-der-Sluijs
Copy link

  • code-server version: Latest from Docker (codercom/code-server)
  • OS Version: Ubuntu 18.04

Description

When I create any file through the web, I get the error Permission denied writing to file (file:///home/coder/project/test.txt)

I've also tried appending :z to the Volume and even tried using the unsafe paramenter --privileged

Steps to Reproduce

  1. Run docker run --name Coder -it -p 8008:8443 -v ${PWD}:/home/coder/project codercom/code-server --allow-http --no-auth

  2. Go to 127.0.0.1:8008

  3. Create a file

@David-van-der-Sluijs David-van-der-Sluijs added the bug Something isn't working label May 10, 2019
@sr229
Copy link
Contributor

sr229 commented May 12, 2019

@SlateDave I already slated a fix for this, because said mountable path seems to not allow writes, but @nhooyr didn't like the mode change, so this bug persisted.

@liuyanhang
Copy link

use --user root

@sr229
Copy link
Contributor

sr229 commented May 13, 2019

@liuyanhang that is not recommended. I'm working on a fix right now

@liguobao
Copy link

@liuyanhang --user root is docker command

@nhooyr
Copy link
Contributor

nhooyr commented Aug 19, 2019

@sr229 There is no indication that the cause of the issue seen by @SlateDave is the same as the one you are fixing in #679

@SlateDave What are the permissions on the mounted in folder and what user are you inside the container?

@code-asher code-asher added the waiting-for-info Waiting for more information from submitter label Oct 23, 2019
@nhooyr
Copy link
Contributor

nhooyr commented Jan 28, 2020

Duplicate of #1307

@nhooyr nhooyr marked this as a duplicate of #1307 Jan 28, 2020
@nhooyr nhooyr closed this as completed Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants