[ https://issues.apache.org/jira/browse/YARN-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392920#comment-15392920 ]
Shane Kumpf commented on YARN-5428: ----------------------------------- Attaching a patch that allows for specifying the docker client configuration directory. It adds the configuration parameter yarn.nodemanager.runtime.linux.docker.client-config-directory to yarn-site to allow the admin to specify the directory where the docker configuration file is stored on each node. Note that the --config=<client config directory> option is for docker CLI, and needs to come before the action (run, load, pull, etc), so it was added to the DockerCommand abstract class. This will prove useful for other options that need to be prepended to the docker command line args, such as debug. The config option has only been added to launchContainer, as that is where the implicit docker pull occurs and the credentials would be needed. > Allow for specifying the docker client configuration directory > -------------------------------------------------------------- > > Key: YARN-5428 > URL: https://issues.apache.org/jira/browse/YARN-5428 > Project: Hadoop YARN > Issue Type: Sub-task > Components: yarn > Reporter: Shane Kumpf > Assignee: Shane Kumpf > Attachments: YARN-5428.001.patch > > > The docker client allows for specifying a configuration directory that > contains the docker client's configuration. It is common to store "docker > login" credentials in this config, to avoid the need to docker login on each > cluster member. > By default the docker client config is $HOME/.docker/config.json on Linux. > However, this does not work with the current container executor user > switching and it may also be desirable to centralize this configuration > beyond the single user's home directory. > Note that the command line arg is for the configuration directory NOT the > configuration file. > This change will be needed to allow YARN to automatically pull images at > localization time or within container executor. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org