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

Varun Vasudev commented on YARN-5042:
-------------------------------------

Thanks for the updated patch [~luhuichun]! Just one change -
{code} +        .addMountLocation("/sys/fs/cgroup", "/sys/fs/cgroup:ro", true); 
{code}

Can you please set createSource to false? We don't want to create 
/sys/fs/cgroup on the host machine if it doesn't exist. 

> Mount /sys/fs/cgroup into Docker containers as read only mount
> --------------------------------------------------------------
>
>                 Key: YARN-5042
>                 URL: https://issues.apache.org/jira/browse/YARN-5042
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn
>            Reporter: Varun Vasudev
>            Assignee: luhuichun
>         Attachments: YARN-5042.001.patch, YARN-5042.002.patch, 
> YARN-5042.003.patch, YARN-5042.004.patch
>
>
> Containers running systemd need access to /sys/fs/cgroup. We should mount it 
> into the container as a read only mount.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to