[
https://issues.apache.org/jira/browse/HADOOP-12576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009096#comment-15009096
]
Haohui Mai commented on HADOOP-12576:
-------------------------------------
Is there a reason why the docker build has to be run as root? Is it possible to
run it as nobody?
> Same owner of maven repository on Docker container to build user
> ----------------------------------------------------------------
>
> Key: HADOOP-12576
> URL: https://issues.apache.org/jira/browse/HADOOP-12576
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Kai Sasaki
> Assignee: Kai Sasaki
> Priority: Trivial
> Labels: docker
> Attachments: HADOOP-12576.01.patch
>
>
> When local maven repository has not yet created, docker container launched by
> {{start-build-env.sh}} create it owned by launching user. {{docker}} command
> ofter be run by root user unless manipulating docker unix groups.
> In that case, maven local repository is created by root user and building
> process inside container fails.
> It is better to make sure to create maven local repository by just the user
> who trying to build before launching docker container if not exist maven
> local repository.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)