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

Charo Zhang commented on YARN-8986:
-----------------------------------

[~liuxun323]The screenshot is our implemention based on yarn 3.1.1 because we 
want to access container from other node. we add "--publish-all=true" config to 
publish all exposed ports in docker image when running docker container. 

if (strcmp("--net=bridge",  args->data[i])==0){
           add_to_args(args, "--publish-all=true");
           break;
      }

We think it is necessary to publish all exposed ports or support port mapping 
for bridge network in yarn future version.
At same time, yarn seem to does not yet support overlay network. Is it possible 
to support CNI plugin, such as Flannel and Calico.

> 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: Improvement
>          Components: yarn
>    Affects Versions: 3.1.1
>            Reporter: Charo Zhang
>            Priority: Minor
>             Fix For: 3.1.2
>
>         Attachments: 20181108155450.png
>
>
> it's better to publish all exposed ports to random ports when using bridge 
> network for docker container.
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to