{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13083","labels_url":"https://api.github.com/repos/docker/docker/issues/13083/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13083/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13083/events","html_url":"https://github.com/docker/docker/issues/13083","id":74247615,"number":13083,"title":"Repository incorrectly parsed when a digest is provided","user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/Distribution","name":"Distribution","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T06:13:56Z","updated_at":"2015-05-08T20:09:53Z","closed_at":null,"body":"Docker fails to run the following:\r\n\r\n```\r\n$ docker run -it golang:1.4.2@sha256:6efc7717226ae757dbe3dc1f629cd06cf8bf736a5fbdfb3bae738d602d15c003\r\nUnable to find image 'golang:1.4.2@sha256:6efc7717226ae757dbe3dc1f629cd06cf8bf736a5fbdfb3bae738d602d15c003' locally\r\nFATA[0000] Invalid repository name (golang:1.4.2), only [a-z0-9-_.] are allowed\r\n```\r\n\r\nI would expect this to correctly parse the the repo, tag and digest into separate components. When selecting the image, it should ignore the tag portion and run as if passed `golang@sha256:6efc7717226ae757dbe3dc1f629cd06cf8bf736a5fbdfb3bae738d602d15c003`.\r\n\r\n```\r\n$ docker info\r\nContainers: 3\r\nImages: 423\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 429\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nKernel Version: 3.18.11-tinycore64\r\nOperating System: Boot2Docker 1.6.0 (TCL 5.4); master : a270c71 - Thu Apr 16 19:50:36 UTC 2015\r\nCPUs: 8\r\nTotal Memory: 1.961 GiB\r\nName: boot2docker\r\nID: NG2P:MYSI:J7YO:PXLA:ZTBL:JAVV:IBYU:R3L5:S5HX:LKM6:T4LA:DFTO\r\nDebug mode (server): true\r\nDebug mode (client): false\r\nFds: 13\r\nGoroutines: 18\r\nSystem Time: Fri May  8 06:11:01 UTC 2015\r\nEventsListeners: 0\r\nInit SHA1: 9145575052383dbf64cede3bac278606472e027c\r\nInit Path: /usr/local/bin/docker\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: sday\r\nRegistry: [https://index.docker.io/v1/]\r\n```\r\n\r\ncc @ncdc @dmcgowan "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/100345021","html_url":"https://github.com/docker/docker/issues/13083#issuecomment-100345021","issue_url":"https://api.github.com/repos/docker/docker/issues/13083","id":100345021,"user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T20:09:53Z","updated_at":"2015-05-08T20:09:53Z","body":"The primary reason I opened this ticket is the error message:\r\n\r\n```\r\nFATA[0000] Invalid repository name (golang:1.4.2), only [a-z0-9-_.] are allowed\r\n```\r\n\r\nThis tells me we are making some odd assumptions in the parser.\r\n\r\n> Should it be possible to do docker pull foo/bar:latest@D2 or docker pull foo/bar:other@D1?\r\n\r\n@ncdc Perhaps. That is partially while I opened this ticket. Having the digest without the tag makes understanding where that digest may have come from harder. The other possibility is that the runner ensures that the tag has that digest."}}