mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jie Yu (JIRA)" <>
Subject [jira] [Updated] (MESOS-6169) --docker_config doesn't work with amazon-ecr-credential-helper
Date Thu, 15 Sep 2016 17:09:20 GMT


Jie Yu updated MESOS-6169:
    Assignee: Gilbert Song

> --docker_config doesn't work with amazon-ecr-credential-helper
> --------------------------------------------------------------
>                 Key: MESOS-6169
>                 URL:
>             Project: Mesos
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 1.0.0
>            Reporter: Mao Geng
>            Assignee: Gilbert Song
> We are using AWS ECR as docker registry and using
to get credential automatically. 
> As amazon-ecr-credential-helper required, we set a .docker/config.json file like below:

> {code}
> {
>     "credsStore": "ecr-login",
>     "auths": {
>         "": {
>         }
>     }
> }
> {code}
> According to the "credsStore" field, docker engine will invoke a "docker-credential-ecr-login"
command (which we've installed into /usr/bin/) to get registry credential whenever required,
for example when executing docker pull/push. 
> This works fine when we tar the .docker/config.json and use uris prarameter to pull the
tar.gz file for every task using docker image. 
> But when I try the new --docker_config option, it doesn't work. The task failed to pull
the image from ECR. The error message is 
> {code}
> Failed to launch container: Failed to run 'docker -H unix:///var/run/docker.sock pull<image_name>:latest': exited with status
1; stderr='WARNING: Error loading config file:/tmp/28Vd2O/.dockercfg - The Auth config file
is empty unauthorized: authentication required '
> {code}
> Checked the source at,
but don't understand why above errors message says loading a temp .dockercfg file, which doesn't
exist btw. I assume mesos should pull the image using the config.json file I set to --docker_config,

This message was sent by Atlassian JIRA

View raw message