Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Docker credentials in Docker Pull Task #707

Closed
dfaller opened this issue Jan 20, 2017 · 1 comment
Closed

Pass Docker credentials in Docker Pull Task #707

dfaller opened this issue Jan 20, 2017 · 1 comment

Comments

@dfaller
Copy link
Contributor

dfaller commented Jan 20, 2017

Update the Docker pull task to use the DC/OS Docker credentials if they are defined. Otherwise the pull task will not use the Docker credentials and potentially fail.

@gisjedi
Copy link
Contributor

gisjedi commented Jun 9, 2017

If we are performing this within a Mesos task per node, we will need to use the Scale environment variable CONFIG_URI to pass a URI into the Mesos task. This URI is expected to contain a package with the following structure:

.docker
.docker/config.json

The docker/config.json file must contain the credentials to the registry where Scale jobs and algorithms are stored.

Once this package has been expanded, all that is needed to activate the use of these credentials is to tell the Docker CLI where your config directory is:

export DOCKER_CONFIG=`pwd`/.docker

Now docker pull operations will use the credentials stored within.

@dfaller dfaller self-assigned this Jun 19, 2017
@dfaller dfaller modified the milestones: Sprint 06-19-2017, Backlog Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants