{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13267","labels_url":"https://api.github.com/repos/docker/docker/issues/13267/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13267/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13267/events","html_url":"https://github.com/docker/docker/issues/13267","id":76871031,"number":13267,"title":"Does docker build remove volumes of intermediate containers?","user":{"login":"jamesyli","id":126023,"avatar_url":"https://avatars.githubusercontent.com/u/126023?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesyli","html_url":"https://github.com/jamesyli","followers_url":"https://api.github.com/users/jamesyli/followers","following_url":"https://api.github.com/users/jamesyli/following{/other_user}","gists_url":"https://api.github.com/users/jamesyli/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesyli/subscriptions","organizations_url":"https://api.github.com/users/jamesyli/orgs","repos_url":"https://api.github.com/users/jamesyli/repos","events_url":"https://api.github.com/users/jamesyli/events{/privacy}","received_events_url":"https://api.github.com/users/jamesyli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T22:03:00Z","updated_at":"2015-06-11T22:27:52Z","closed_at":"2015-06-11T22:27:52Z","body":"In the output of docker build, I saw an output line of 'Removing intermediate container xyz', does that mean all the volums of the intermediate container xyz get removed?\r\n\r\nI know I need 'docker rm **-v**' to remove volums, just not sure if docker build adds the '-v' option to remove intermediate containers.\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/111293906","html_url":"https://github.com/docker/docker/issues/13267#issuecomment-111293906","issue_url":"https://api.github.com/repos/docker/docker/issues/13267","id":111293906,"user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T22:27:52Z","updated_at":"2015-06-11T22:27:52Z","body":"It **does**. You can see the options for the cleanup in the builder internals:\r\n\r\nhttps://github.com/docker/docker/blob/master/builder/internals.go#L747-L749"}}