{"action":"created","issue":{"url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/25","labels_url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/25/comments","events_url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/25/events","html_url":"https://github.com/drone-plugins/drone-docker/pull/25","id":124625651,"number":25,"title":"Docker graph caching","user":{"login":"djmaze","id":7229,"avatar_url":"https://avatars.githubusercontent.com/u/7229?v=3","gravatar_id":"","url":"https://api.github.com/users/djmaze","html_url":"https://github.com/djmaze","followers_url":"https://api.github.com/users/djmaze/followers","following_url":"https://api.github.com/users/djmaze/following{/other_user}","gists_url":"https://api.github.com/users/djmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/djmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmaze/subscriptions","organizations_url":"https://api.github.com/users/djmaze/orgs","repos_url":"https://api.github.com/users/djmaze/repos","events_url":"https://api.github.com/users/djmaze/events{/privacy}","received_events_url":"https://api.github.com/users/djmaze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-03T03:05:09Z","updated_at":"2016-01-05T22:18:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/drone-plugins/drone-docker/pulls/25","html_url":"https://github.com/drone-plugins/drone-docker/pull/25","diff_url":"https://github.com/drone-plugins/drone-docker/pull/25.diff","patch_url":"https://github.com/drone-plugins/drone-docker/pull/25.patch"},"body":"This allows caching the whole Docker graph with the cache plugin. Caching is efficient with the overlay storage driver at least. Works much better (also faster) than the existing save/load approach for me. \r\n\r\nThe drawback with this approach: old image layers are preserved in the graph directory belonging to the repository. This is why I added code which removes untagged images after the image has been pushed. This makes sure the cache doesn't grow over time. (We could add a configuration option for this, as it is only needed for this kind of caching.)\r\n\r\nThis caching method probably shouldn't be used with other storage drivers. I only tried `overlay` (good) and `devicemapper` (totally inefficient). Not quite sure if it works with `aufs` (probably only workable if host system also uses aufs). Anyone able to try?"},"comment":{"url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/comments/169151602","html_url":"https://github.com/drone-plugins/drone-docker/pull/25#issuecomment-169151602","issue_url":"https://api.github.com/repos/drone-plugins/drone-docker/issues/25","id":169151602,"user":{"login":"djmaze","id":7229,"avatar_url":"https://avatars.githubusercontent.com/u/7229?v=3","gravatar_id":"","url":"https://api.github.com/users/djmaze","html_url":"https://github.com/djmaze","followers_url":"https://api.github.com/users/djmaze/followers","following_url":"https://api.github.com/users/djmaze/following{/other_user}","gists_url":"https://api.github.com/users/djmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/djmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmaze/subscriptions","organizations_url":"https://api.github.com/users/djmaze/orgs","repos_url":"https://api.github.com/users/djmaze/repos","events_url":"https://api.github.com/users/djmaze/events{/privacy}","received_events_url":"https://api.github.com/users/djmaze/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T22:18:29Z","updated_at":"2016-01-05T22:18:29Z","body":"@bradrydzewski Yes, why not? That sounds like a good idea."}}