Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-4333

Marathon cannot pull docker image from AWS ECR

    Details

      Description

      Hi,

      I followed this [https://mesosphere.github.io/marathon/docs/native-docker-private-registry.html|tutorial] . However it seems does not work with AWS ECR even I configed to be able to pull from aws ecr using command line under all the user group.

      The mesos slave log show that I have fetched and untar the docker.tar.gz (image)

      The marathon last failure show:

      Failed to launch container: Failed to 'docker -H unix:///var/run/docker.sock pull AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/cloud:otp10Mar2016v4': exit status = exited with status 1 stderr =
      

      The docker API showing:

      INFO[44509] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v4
      
      INFO[44388] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v2
      
      ERRO[44509] Handler for GET /v1.21/containers/AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG/json returned error: no such id: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG
      ERRO[44509] HTTP Error                                    err=no such id: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG statusCode=404
      INFO[44509] GET /v1.21/images/AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG/json
      ERRO[44509] Handler for GET /v1.21/images/AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG/json returned error: No such image: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG
      ERRO[44509] HTTP Error                                    err=No such image: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG statusCode=404
      INFO[44509] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v4
      

      PS: I am using Marathon version 0.15.2, Mesos 0.26.

        Attachments

          Activity

            People

            • Assignee:
              matthias.eichstedt Matthias Eichstedt
              Reporter:
              GitHub_anhcuong Frank (Inactive)
              Team:
              Orchestration Team
              Watchers:
              Jason Gilanfarr (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: