Skip to content

Docker issue #459

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
Mehran opened this issue Apr 8, 2019 · 5 comments · Fixed by #471
Closed

Docker issue #459

Mehran opened this issue Apr 8, 2019 · 5 comments · Fixed by #471
Labels
bug Something isn't working

Comments

@Mehran
Copy link

Mehran commented Apr 8, 2019

os Debian 9.0

docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/home/coder/project\") set in config.json failed: permission denied": unknown.

@Mehran Mehran added the bug Something isn't working label Apr 8, 2019
@saadat99
Copy link

saadat99 commented Apr 8, 2019

same. Ubuntu 18, digitalocean
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd ("/home/coder/project") set in config.json failed: permission denied": unknown.

@sr229
Copy link
Contributor

sr229 commented Apr 9, 2019

Workaround is to bind mount to those directories. I'll make a patch to add VOLUME stage so this doesn't happen.

@modulareverything
Copy link

+1 also getting this error on DigitalOcean

@vimota
Copy link

vimota commented Apr 17, 2019

Anything we can do to resolve this until it's released?

@isaacirosado
Copy link

@vimota the workaround is to set group write permissions for $PATH before bind-mounting, e.g.

chmod g+w $PATH

That's what the fix implemented by @sr229 is doing, but inside the container after the bind-mount happens (thanks for that BTW, coder is awesome!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants