Skip to content

[docker] Set permissions to container uid and group#189

Merged
devrandom merged 1 commit intodevrandom:masterfrom
achow101:docker-cp-fix
Jul 4, 2018
Merged

[docker] Set permissions to container uid and group#189
devrandom merged 1 commit intodevrandom:masterfrom
achow101:docker-cp-fix

Conversation

@achow101
Copy link
Copy Markdown
Contributor

@achow101 achow101 commented Jul 3, 2018

docker cp has a bug where it uses the host machine's uid and group
for copied files and directories even though the copied files and
directories should use the container's user's uid and group. To fix
this, we run chown as root on the copied files and directories to
get the correct permissions.

This bug has caused problems for people whose uid:gid is not 1000:1000. This fixes those problems.

docker cp has a bug where it uses the host machine's uid and group
for copied files and directories even though the copied files and
directories should use the container's user's uid and group. To fix
this, we run chown as root on the copied files and directories to
get the correct permissions.
@achow101 achow101 requested a review from devrandom as a code owner July 3, 2018 23:17
@devrandom devrandom merged commit 76cb7e4 into devrandom:master Jul 4, 2018
devrandom added a commit that referenced this pull request Jul 4, 2018
76cb7e4 Set permissions to container uid and group (Andrew Chow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants