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

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

[~Charo Zhang] add_ports_mapping_to_command assumes that network_name is always 
supplied in .cmd file.  However, network_name might not exist, and cause docker 
network inspect to fail.  This is what happen in the failed [unit 
tests|https://builds.apache.org/job/PreCommit-YARN-Build/22634/testReport/].  
When network_name is unspecified, docker default network is bridge.  You may 
want to add that logic to be part of add_ports_mapping_to_command.  Thanks

> 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
>         Attachments: YARN-8986.001.patch, YARN-8986.002.patch, 
> YARN-8986.003.patch, YARN-8986.004.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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to