{"action":"opened","issue":{"url":"https://api.github.com/repos/concourse/docker-image-resource/issues/33","repository_url":"https://api.github.com/repos/concourse/docker-image-resource","labels_url":"https://api.github.com/repos/concourse/docker-image-resource/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/concourse/docker-image-resource/issues/33/comments","events_url":"https://api.github.com/repos/concourse/docker-image-resource/issues/33/events","html_url":"https://github.com/concourse/docker-image-resource/issues/33","id":149053816,"number":33,"title":"Resource tries to pull image with incorrect digest","user":{"login":"martinsbalodis","id":890132,"avatar_url":"https://avatars.githubusercontent.com/u/890132?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsbalodis","html_url":"https://github.com/martinsbalodis","followers_url":"https://api.github.com/users/martinsbalodis/followers","following_url":"https://api.github.com/users/martinsbalodis/following{/other_user}","gists_url":"https://api.github.com/users/martinsbalodis/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsbalodis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsbalodis/subscriptions","organizations_url":"https://api.github.com/users/martinsbalodis/orgs","repos_url":"https://api.github.com/users/martinsbalodis/repos","events_url":"https://api.github.com/users/martinsbalodis/events{/privacy}","received_events_url":"https://api.github.com/users/martinsbalodis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T06:18:38Z","updated_at":"2016-04-18T06:18:38Z","closed_at":null,"body":"Hi!\r\nI am running `fly execute` but it fails while pulling a docker image. From the output I can see that it tries to pull a version of a container that has never existed in the repository (private http repository).\r\n\r\nHere is the task.yml part:\r\n```yml\r\n...\r\nimage_resource:\r\n  type: docker-image\r\n  source:\r\n   repository: 1.2.3.4:5000/my-image\r\n   insecure_registries: [\"1.2.3.4:5000\"]\r\n   email: martins@example.com\r\n   username: martins\r\n   password: pass\r\n...\r\n```\r\n\r\nFly command:\r\n```sh\r\nfly -t lc execute -c task.yml\r\n```\r\n\r\nOutput of the fly command:\r\n```\r\n...\r\ninitializing\r\nWARNING: login credentials saved in /root/.docker/config.json\r\nLogin Succeeded\r\nPulling 1.2.3.4:5000/my-image@sha256:59795eb87abd170f1b97f82f5838db5637890962d7bd623f5ce04c7833ef29f0...\r\nError response from daemon: manifest unknown: manifest unknown\r\n\r\nPulling 1.2.3.4:5000/my-image@sha256:59795eb87abd170f1b97f82f5838db5637890962d7bd623f5ce04c7833ef29f0 (attempt 2 of 3)...\r\nError response from daemon: manifest unknown: manifest unknown\r\n\r\nPulling 1.2.3.4:5000/my-image@sha256:59795eb87abd170f1b97f82f5838db5637890962d7bd623f5ce04c7833ef29f0 (attempt 3 of 3)...\r\nError response from daemon: manifest unknown: manifest unknown\r\n\r\n\r\nFailed to pull image 1.2.3.4:5000/my-image@sha256:59795eb87abd170f1b97f82f5838db5637890962d7bd623f5ce04c7833ef29f0.resource script '/opt/resource/in [/tmp/build/get]' failed: exit status 1\r\nerrored\r\n```\r\n\r\nThe docker registry doesn't contain a version of this image that has sha256 like `59795eb87abd`. I also checked the directory where the images are stored to make sure."}}