{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14678","labels_url":"https://api.github.com/repos/docker/docker/issues/14678/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14678/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14678/events","html_url":"https://github.com/docker/docker/issues/14678","id":95470283,"number":14678,"title":"devicemapper:  dm.basesize should be tunable per-container","user":{"login":"jeremyeder","id":1919640,"avatar_url":"https://avatars.githubusercontent.com/u/1919640?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyeder","html_url":"https://github.com/jeremyeder","followers_url":"https://api.github.com/users/jeremyeder/followers","following_url":"https://api.github.com/users/jeremyeder/following{/other_user}","gists_url":"https://api.github.com/users/jeremyeder/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyeder/subscriptions","organizations_url":"https://api.github.com/users/jeremyeder/orgs","repos_url":"https://api.github.com/users/jeremyeder/repos","events_url":"https://api.github.com/users/jeremyeder/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyeder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-16T16:16:54Z","updated_at":"2015-07-17T13:48:53Z","closed_at":null,"body":"Right now when using the devicemapper graph driver, the dm.basesize daemon flag sets the default size of the CoW volume for each container to 10G by default.\r\n\r\nIf a user needs more than 10G in their CoW volume, they must completely tear down their storage backend (delete all containers and images), rm -rf /var/lib/docker customize dm.basesize, start docker and recreate all their images/containers.\r\n\r\nWe need an option to make dm.basesize tunable on a per-container basis.\r\nKeep the default of 10G, but allow an override at runtime:\r\n\r\ni.e. this would create a new container of 32G size:\r\n\r\n```# docker run -it --basesize=32G rhel7 bash```\r\n\r\nI am explicitly NOT including resizing of existing/running containers in this PR, although that would be useful."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/122278961","html_url":"https://github.com/docker/docker/issues/14678#issuecomment-122278961","issue_url":"https://api.github.com/repos/docker/docker/issues/14678","id":122278961,"user":{"login":"rhvgoyal","id":9487534,"avatar_url":"https://avatars.githubusercontent.com/u/9487534?v=3","gravatar_id":"","url":"https://api.github.com/users/rhvgoyal","html_url":"https://github.com/rhvgoyal","followers_url":"https://api.github.com/users/rhvgoyal/followers","following_url":"https://api.github.com/users/rhvgoyal/following{/other_user}","gists_url":"https://api.github.com/users/rhvgoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/rhvgoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhvgoyal/subscriptions","organizations_url":"https://api.github.com/users/rhvgoyal/orgs","repos_url":"https://api.github.com/users/rhvgoyal/repos","events_url":"https://api.github.com/users/rhvgoyal/events{/privacy}","received_events_url":"https://api.github.com/users/rhvgoyal/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T13:48:53Z","updated_at":"2015-07-17T13:48:53Z","body":"@jeremyeder \r\n\r\ndm.loopdatasize should not have any affect on dm.basesize. dm.basesize is virtual size. It does not matter how much physical space is there in underlying storage.\r\n\r\ndm.loopdatasize is specifying the max size of loop device. It would even be 1G and still we should be\r\nable to create thin devices of size 100G. Just that when you start writing to those devices, they can not collectively consume more than 1G.\r\n\r\nIOW, dm.basesize does not have a direct dependency on dm.loopdatasize."}}