#0000 - Grant coder user ownership of /workspaces in Dockerfile #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/workspaces-coder-ownership"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
coderDocker stage,/workspaceswas implicitly created by theWORKDIRdirective and ended up owned byroot, leaving the non-rootcoderuser without write access to its own working directory.mkdir -p /workspaces && chown -R coder:coder /workspacesstep (run as root, before theUSER coderswitch) so thecoderuser has full rights to the directory at runtime.coderstage is affected; thecistage runs as root and is unchanged./workspacesdirectory and set ownership forcoderuser in Dockerfile