{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12998","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/12998/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12998/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12998/events","html_url":"https://github.com/docker/docker/issues/12998","id":73413726,"number":12998,"title":"`docker rmi -r` to remove dependent images","user":{"login":"jdmarshall","id":1656505,"avatar_url":"https://avatars.githubusercontent.com/u/1656505?v=3","gravatar_id":"","url":"https://api.github.com/users/jdmarshall","html_url":"https://github.com/jdmarshall","followers_url":"https://api.github.com/users/jdmarshall/followers","following_url":"https://api.github.com/users/jdmarshall/following{/other_user}","gists_url":"https://api.github.com/users/jdmarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmarshall/subscriptions","organizations_url":"https://api.github.com/users/jdmarshall/orgs","repos_url":"https://api.github.com/users/jdmarshall/repos","events_url":"https://api.github.com/users/jdmarshall/events{/privacy}","received_events_url":"https://api.github.com/users/jdmarshall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/distribution","name":"area/distribution","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-05-05T19:47:37Z","updated_at":"2016-10-10T11:54:21Z","closed_at":null,"body":"Let's say I want to rerun all of the steps in a docker build starting at Layer 6 (1265e16d0c28) and the last layer generated by the dockerfile is 1265e16d0c28\r\n\r\nToday if I want to delete Layer 6 and rerun `docker build` I have to do something like this:\r\n\r\n```\r\ndocker rmi $(docker history -q 89785ab09669 | grep -B 100 1265e16d0c28)\r\n```\r\nWhich basically takes all of the images 'after' 1265e16d0c28 (inclusive) and deletes them in reverse chronological order.\r\n\r\nIf docker could do that for me, with something like:\r\n```\r\ndocker rmi -r 1265e16d0c28\r\n```\r\nThat would be a lot easier to explain to people (especially new people) and it reduces the frequency with which someone has to use --no-cache\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/252597643","html_url":"https://github.com/docker/docker/issues/12998#issuecomment-252597643","issue_url":"https://api.github.com/repos/docker/docker/issues/12998","id":252597643,"user":{"login":"levrado","id":4353842,"avatar_url":"https://avatars.githubusercontent.com/u/4353842?v=3","gravatar_id":"","url":"https://api.github.com/users/levrado","html_url":"https://github.com/levrado","followers_url":"https://api.github.com/users/levrado/followers","following_url":"https://api.github.com/users/levrado/following{/other_user}","gists_url":"https://api.github.com/users/levrado/gists{/gist_id}","starred_url":"https://api.github.com/users/levrado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levrado/subscriptions","organizations_url":"https://api.github.com/users/levrado/orgs","repos_url":"https://api.github.com/users/levrado/repos","events_url":"https://api.github.com/users/levrado/events{/privacy}","received_events_url":"https://api.github.com/users/levrado/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T11:54:21Z","updated_at":"2016-10-10T11:54:21Z","body":"👍 \r\n"}}
{"actor":{"display_login":"levrado"}}