Skip to content

Custom docker daemon args is not working #10844

@shaoye

Description

@shaoye

Bug description

Got Permission denied error following the steps in #8435

1. Add environment variable DOCKER_DAEMON_ARGS to your user settings. The content should look like this:
{ "remap-user": "1000" } (Means container id 1000 will be mapped to gitpod user).
2. Start workspace
3. mkdir /workspace/tmp/me
4. Run docker image which supports running as unprivileged user e.g. sudo docker run -it -u node -v /workspace/tmp/me:/tmp node sh
5. Create file within container e.g. touch /tmp/foo
6. Verify that the created file has gitpod:gitpod permissions in the workspace

got permission denied at step 5,

touch: cannot touch '/tmp/foo': Permission denied

the node user can't create any files since /tmp is owned by gitpod user

/tmp$ ls -al
total 4
drwxr-xr-x 2 33333 33333   40 Jun 21 21:59 .
drwxr-xr-x 1 root  root  4096 Jun 21 22:00 ..

Steps to reproduce

as above

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions