{"action":"created","issue":{"url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/338","labels_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/338/comments","events_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/338/events","html_url":"https://github.com/rhuss/docker-maven-plugin/issues/338","id":118837345,"number":338,"title":"cleanup is not defaulting to true","user":{"login":"pnsantos","id":630567,"avatar_url":"https://avatars.githubusercontent.com/u/630567?v=3","gravatar_id":"","url":"https://api.github.com/users/pnsantos","html_url":"https://github.com/pnsantos","followers_url":"https://api.github.com/users/pnsantos/followers","following_url":"https://api.github.com/users/pnsantos/following{/other_user}","gists_url":"https://api.github.com/users/pnsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/pnsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnsantos/subscriptions","organizations_url":"https://api.github.com/users/pnsantos/orgs","repos_url":"https://api.github.com/users/pnsantos/repos","events_url":"https://api.github.com/users/pnsantos/events{/privacy}","received_events_url":"https://api.github.com/users/pnsantos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T13:32:30Z","updated_at":"2015-11-26T11:00:01Z","closed_at":null,"body":"Hi, recently started using docker together with this plugin (pretty nice plugin!).\r\n\r\nI noticed that when I build an image that has already been built, dangling images were being left behind. From the [docs](http://ro14nd.de/docker-maven-plugin/docker-build.html):\r\n> **cleanup** indicates if dangling (untagged) images should be cleaned up during each build. Default is `true`\r\n\r\nthe `cleanup` config param is supposed to address this, and it does indeed! However it's seems that the default value is `false` and not `true` as the documentation mentions which means it needs to be explicitly set to `true`.\r\n\r\nNot sure if it's the docs that are wrong, or if the cleanup should indeed default to true (I would assume the latter, right?).\r\n\r\nUsing version **0.13.6**\r\n"},"comment":{"url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/comments/159880724","html_url":"https://github.com/rhuss/docker-maven-plugin/issues/338#issuecomment-159880724","issue_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/338","id":159880724,"user":{"login":"rhuss","id":99080,"avatar_url":"https://avatars.githubusercontent.com/u/99080?v=3","gravatar_id":"","url":"https://api.github.com/users/rhuss","html_url":"https://github.com/rhuss","followers_url":"https://api.github.com/users/rhuss/followers","following_url":"https://api.github.com/users/rhuss/following{/other_user}","gists_url":"https://api.github.com/users/rhuss/gists{/gist_id}","starred_url":"https://api.github.com/users/rhuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhuss/subscriptions","organizations_url":"https://api.github.com/users/rhuss/orgs","repos_url":"https://api.github.com/users/rhuss/repos","events_url":"https://api.github.com/users/rhuss/events{/privacy}","received_events_url":"https://api.github.com/users/rhuss/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T11:00:01Z","updated_at":"2015-11-26T11:00:01Z","body":"Thanks for pointing that out. You are absolutely correct, the documentation doesn't fit the implementation. Since documentation in that case is more normative ;-) I changed now the default implementation to remove the intermediate image.\r\n"}}