You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Shane Kumpf (JIRA)" <ji...@apache.org> on 2017/06/21 23:49:00 UTC

[jira] [Commented] (YARN-6726) Support additional docker commands in container-executor

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

Shane Kumpf commented on YARN-6726:
-----------------------------------

While working on YARN-5366 I found a couple of issues that need to be addressed in container-executor to allow command other than {{docker run}} to work.

Here are a few I've found so far:
1) {{docker inspect}} uses the {{--format}} option, which isn't supported.
2) {{docker rm}} has a single argument, the container name. Currently the container name has literal quotes surrounding it, which results in docker being unable to find the container (i.e. container_xyz becomes 'container_xyz' at invocation time.
3) {{docker pull}} may need special handling, as the only argument is the image name, which is user supplied and not safe. Quoting this argument runs into similar issues as 2.

These are the ones I've found so far. I will take ownership and put together a patch with fixes for the above and any additional items I find.

> Support additional docker commands in container-executor
> --------------------------------------------------------
>
>                 Key: YARN-6726
>                 URL: https://issues.apache.org/jira/browse/YARN-6726
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>            Reporter: Shane Kumpf
>
> docker inspect, rm, stop, etc are issued through container-executor. Commands other than docker run are not functioning properly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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