Skip to content

bug: bad permission in current working directory #370

@aaronzs

Description

@aaronzs

Description

There is a permission issue when the CWD has difference UID, GID with the USER in container.

I used to fix this issue with --user $(id -u):$(id -g) in docker-cli or create and switch to the new user in the Dockerfile

I didn't find the user configuration in build.envd. It may be a new feature.

Reproduction

(envd) ➜  envd-quick-start whoami
envd
(envd) ➜  envd-quick-start id
uid=1000(envd) gid=1000(envd) groups=1000(envd),27(sudo)
(envd) ➜  envd-quick-start ll
total 28K
-rw-rw-r-- 1 1042 1042  12K Jun 16 02:54 LICENSE
-rw-rw-r-- 1 1042 1042 4.4K Jun 16 02:54 README.md
-rw-rw-r-- 1 1042 1042  250 Jun 16 03:16 build.envd
-rw-rw-r-- 1 1042 1042   54 Jun 16 02:54 demo.py
(envd) ➜  envd-quick-start touch new_file
touch: cannot touch 'new_file': Permission denied

Additional Info

Maybe related to issue #343, see also VS Code devcontainer add non-root user

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions