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

Charo Zhang edited comment on YARN-8986 at 11/17/18 9:53 AM:
-------------------------------------------------------------

[~eyang] Does yarn have version requirement for Docker. I am using Docker 
1.9.1, I didn't find "--format" option for "docker network ls ".

I update my Docker to latest version, and modify the patch from
{code:c}
  char *docker_network_command = make_string("%s network ls | grep %s | awk 
'{print $3}'", docker_binary, network_name);
  FILE* docker_network = popen(docker_network_command, "r");
{code}
to
{code:c}
  char *docker_network_command = make_string("%s network inspect %s 
--format='{{.Driver}}'", docker_binary, network_name);
  FILE* docker_network = popen(docker_network_command, "r");
{code}
The latest patch has uploaded, do you that is ok?



was (Author: charo zhang):
[~eyang] Does yarn have version requirement for Docker. I am using Docker 
1.9.1, I didn't find "--format" option for "docker network ls ".

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