{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/3448","repository_url":"https://api.github.com/repos/mesosphere/marathon","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/3448/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/3448/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/3448/events","html_url":"https://github.com/mesosphere/marathon/issues/3448","id":139678284,"number":3448,"title":"Marathon cannot pull docker image from AWS ECR","user":{"login":"anhcuong","id":7950613,"avatar_url":"https://avatars.githubusercontent.com/u/7950613?v=3","gravatar_id":"","url":"https://api.github.com/users/anhcuong","html_url":"https://github.com/anhcuong","followers_url":"https://api.github.com/users/anhcuong/followers","following_url":"https://api.github.com/users/anhcuong/following{/other_user}","gists_url":"https://api.github.com/users/anhcuong/gists{/gist_id}","starred_url":"https://api.github.com/users/anhcuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anhcuong/subscriptions","organizations_url":"https://api.github.com/users/anhcuong/orgs","repos_url":"https://api.github.com/users/anhcuong/repos","events_url":"https://api.github.com/users/anhcuong/events{/privacy}","received_events_url":"https://api.github.com/users/anhcuong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-09T19:34:06Z","updated_at":"2016-05-05T18:38:38Z","closed_at":"2016-04-28T10:03:00Z","body":"Hi, \r\n\r\nI 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.\r\n\r\nThe mesos slave log show that I have fetched and untar the docker.tar.gz (image)\r\n![marathon-pull](https://cloud.githubusercontent.com/assets/7950613/13647740/6bf11bd0-e670-11e5-8453-8715e4b075d7.png)\r\n\r\nThe marathon last failure show:\r\n```\r\nFailed 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 =\r\n```\r\nThe docker API showing:\r\n```\r\nINFO[44509] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v4\r\n\r\nINFO[44388] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v2\r\n\r\nERRO[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\r\nERRO[44509] HTTP Error                                    err=no such id: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG statusCode=404\r\nINFO[44509] GET /v1.21/images/AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG/json\r\nERRO[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\r\nERRO[44509] HTTP Error                                    err=No such image: AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/IMAGE_ID:TAG statusCode=404\r\nINFO[44509] POST /v1.21/images/create?fromImage=AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com%2Fcloud%3Aotp10Mar2016v4\r\n```\r\n\r\nPS: I am using Marathon version 0.15.2, Mesos 0.26."},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/217237230","html_url":"https://github.com/mesosphere/marathon/issues/3448#issuecomment-217237230","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/3448","id":217237230,"user":{"login":"weitzj","id":829277,"avatar_url":"https://avatars.githubusercontent.com/u/829277?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzj","html_url":"https://github.com/weitzj","followers_url":"https://api.github.com/users/weitzj/followers","following_url":"https://api.github.com/users/weitzj/following{/other_user}","gists_url":"https://api.github.com/users/weitzj/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzj/subscriptions","organizations_url":"https://api.github.com/users/weitzj/orgs","repos_url":"https://api.github.com/users/weitzj/repos","events_url":"https://api.github.com/users/weitzj/events{/privacy}","received_events_url":"https://api.github.com/users/weitzj/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T18:38:38Z","updated_at":"2016-05-05T18:38:38Z","body":"My Workaround is right now to have a cronjob on every nide, which does an aws ecr get-login"}}