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

Eric Yang commented on YARN-8986:
---------------------------------

[~Charo Zhang] Thank you for the patch.  This patch assumes YARN user has 
ability to run "docker" command line.  This is not true in secure clusters.  
[Docker access|https://docs.docker.com/install/linux/linux-postinstall/] should 
be given to trusted system admin with sudo access only.  YARN user can only 
acquire privileges to run docker command via C version of container-executor 
binary.  This ensures that we are not giving too much power to YARN user.

We should route "docker network ls" check through C version of 
container-executor to perform docker operations.  The decision making process 
of adding "-P" probably belongs to get_docker_run_command.

> publish all exposed ports to random ports when using bridge network
> -------------------------------------------------------------------
>
>                 Key: YARN-8986
>                 URL: https://issues.apache.org/jira/browse/YARN-8986
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn
>    Affects Versions: 3.1.1
>            Reporter: Charo Zhang
>            Assignee: Charo Zhang
>            Priority: Minor
>              Labels: Docker
>             Fix For: 3.1.2
>
>         Attachments: 20181108155450.png, YARN-8986.001.patch, 
> YARN-8986.002.patch, YARN-8986.003.patch
>
>
> it's better to publish all exposed ports to random ports(-P) or support port 
> mapping(-p) for bridge network when using bridge network for docker container.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to