[ 
https://issues.apache.org/jira/browse/HADOOP-12576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010627#comment-15010627
 ] 

Kai Sasaki commented on HADOOP-12576:
-------------------------------------

[~wheat9] 
Thank you for comment. Docker daemon always run as root user because it uses 
Unix socket. So it requires us to use sudo when we use docker command. There is 
a way to avoid this to create docker unix group and add user as describe below 
document.
http://docs.docker.com/engine/installation/ubuntulinux/#giving-non-root-access
But I think it is useful to build with sudo in such case when we only want to 
build hadoop source code.

> 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)

Reply via email to