[
https://issues.apache.org/jira/browse/YARN-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487992#comment-16487992
]
Shane Kumpf commented on YARN-8342:
-----------------------------------
This sounds like a reasonable proposal. In cases where the current behavior is
desired, the user can set "launch_command" to an empty string I guess?
To be clear, there is no replacement with an "empty bash". The current
"untrusted" mode leaves it up to the Docker image to specify the
ENTRYPOINT/CMD. Nothing is overwritten by YARN in this "untrusted" mode. It is
very common for images to use "bash" as the CMD. When an image does this and
YARN runs in this "untrusted" mode, a non-interactive "bash" shell starts in
the container and immediately exits with success. YARN reports that the
container ran successfully, but this is confusing to the user because the code
they expected to run did not run. The launch script depends on mounts and
"untrusted" mode strips all mounts, meaning we flat out can't use a
launch_script in this mode as we would in "trusted" mode. Allowing the
"launch_command" supplied by the user, without embedding that "launch_command"
in the launch script seems like a viable way to support both. Confused yet? :)
> Using docker image from a non-privileged registry, the launch_command is not
> honored
> ------------------------------------------------------------------------------------
>
> Key: YARN-8342
> URL: https://issues.apache.org/jira/browse/YARN-8342
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Wangda Tan
> Priority: Critical
> Labels: Docker
>
> During test of the Docker feature, I found that if a container comes from
> non-privileged docker registry, the specified launch command will be ignored.
> Container will success without any log, which is very confusing to end users.
> And this behavior is inconsistent to containers from privileged docker
> registries.
> cc: [~eyang], [[email protected]], [~ebadger], [~jlowe]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]