{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11058","labels_url":"https://api.github.com/repos/docker/docker/issues/11058/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11058/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11058/events","html_url":"https://github.com/docker/docker/pull/11058","id":59224175,"number":11058,"title":"fix 'rmi -f imgID' problem","user":{"login":"x1022as","id":2840248,"avatar_url":"https://avatars.githubusercontent.com/u/2840248?v=3","gravatar_id":"","url":"https://api.github.com/users/x1022as","html_url":"https://github.com/x1022as","followers_url":"https://api.github.com/users/x1022as/followers","following_url":"https://api.github.com/users/x1022as/following{/other_user}","gists_url":"https://api.github.com/users/x1022as/gists{/gist_id}","starred_url":"https://api.github.com/users/x1022as/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1022as/subscriptions","organizations_url":"https://api.github.com/users/x1022as/orgs","repos_url":"https://api.github.com/users/x1022as/repos","events_url":"https://api.github.com/users/x1022as/events{/privacy}","received_events_url":"https://api.github.com/users/x1022as/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/2-code-review","name":"2-code-review","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-27T11:26:01Z","updated_at":"2015-03-02T22:36:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11058","html_url":"https://github.com/docker/docker/pull/11058","diff_url":"https://github.com/docker/docker/pull/11058.diff","patch_url":"https://github.com/docker/docker/pull/11058.patch"},"body":"If an image has been tagged to multiple repos and tags, 'docker rmi -f imgID' will just untag one repo other than untagging all repos and deleting the image. This patch fix it.\r\nbefore:\r\n![before](https://cloud.githubusercontent.com/assets/2840248/6411690/e7e3792e-beb5-11e4-8c74-65842f6740ca.png)\r\nafter:\r\n![after](https://cloud.githubusercontent.com/assets/2840248/6411710/2c819926-beb6-11e4-9150-ab0b1561f182.png)\r\n\r\nI think 'rmi -f imgID' just untag a random repo:tag is wired. Deleting all repos and tags may be proper"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76842165","html_url":"https://github.com/docker/docker/pull/11058#issuecomment-76842165","issue_url":"https://api.github.com/repos/docker/docker/issues/11058","id":76842165,"user":{"login":"estesp","id":1397980,"avatar_url":"https://avatars.githubusercontent.com/u/1397980?v=3","gravatar_id":"","url":"https://api.github.com/users/estesp","html_url":"https://github.com/estesp","followers_url":"https://api.github.com/users/estesp/followers","following_url":"https://api.github.com/users/estesp/following{/other_user}","gists_url":"https://api.github.com/users/estesp/gists{/gist_id}","starred_url":"https://api.github.com/users/estesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estesp/subscriptions","organizations_url":"https://api.github.com/users/estesp/orgs","repos_url":"https://api.github.com/users/estesp/repos","events_url":"https://api.github.com/users/estesp/events{/privacy}","received_events_url":"https://api.github.com/users/estesp/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T22:36:52Z","updated_at":"2015-03-02T22:36:52Z","body":"I think they are mostly good thoughts and why I think this needs broader review as it is more like a proposal and not a simple bug fix.  To your comment:\r\n>It could surprise people if they want to remove a specific tag of an image, but use the \"id\" of the image for convenience and end up removing all aliases of that image.\r\n\r\nI would say that in this case the user has been very silly.. if they are using an ID but wish to only remove a specified tag, they have gone the wrong direction :)  And with the fix from #11011 it should now work properly to remove that single tag without getting a warning about other repo/tags on the same ID."}}