{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/16670","labels_url":"https://api.github.com/repos/docker/docker/issues/16670/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/16670/comments","events_url":"https://api.github.com/repos/docker/docker/issues/16670/events","html_url":"https://github.com/docker/docker/issues/16670","id":109000002,"number":16670,"title":"Allow ability to limit disk space available to a container","user":{"login":"jamshid","id":8549,"avatar_url":"https://avatars.githubusercontent.com/u/8549?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshid","html_url":"https://github.com/jamshid","followers_url":"https://api.github.com/users/jamshid/followers","following_url":"https://api.github.com/users/jamshid/following{/other_user}","gists_url":"https://api.github.com/users/jamshid/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshid/subscriptions","organizations_url":"https://api.github.com/users/jamshid/orgs","repos_url":"https://api.github.com/users/jamshid/repos","events_url":"https://api.github.com/users/jamshid/events{/privacy}","received_events_url":"https://api.github.com/users/jamshid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T02:01:56Z","updated_at":"2015-09-30T02:01:56Z","closed_at":null,"body":"It seems like it would be useful and consistent to allow docker volumes to be limited in size, similar to the way cpu can be limited when running a container.\r\n\r\nI see the suggestions here for limiting the disk space available to a container:\r\nhttps://groups.google.com/d/msg/docker-user/jo1Muu7FXg4/5pIAz7nPHo8J\r\n\r\n>- use the devicemapper driver; then the limit will be the size of the filesystem (10 GB by default; which is maybe a lot compared to what you really want!)\r\n\r\nI use docker-machine/boot2docker, devicemapper is not enabled by default afaik, is it safe? I have very bad memories of docker on on CentOS / devicemapper.\r\n\r\n>- use USER (or another mechanism) to make sure that the process in the container runs a specific UID, then bind-mount a volume of a limited size from the host, and make it so that's the only place where this UID can write\r\n\r\nDoes that imply docker's \"automatic\" volumes can't be used, a fixed directory on the docker host must be used instead? I currently rely on docker managing the volumes."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/144257846","html_url":"https://github.com/docker/docker/issues/16670#issuecomment-144257846","issue_url":"https://api.github.com/repos/docker/docker/issues/16670","id":144257846,"user":{"login":"GordonTheTurtle","id":10620046,"avatar_url":"https://avatars.githubusercontent.com/u/10620046?v=3","gravatar_id":"","url":"https://api.github.com/users/GordonTheTurtle","html_url":"https://github.com/GordonTheTurtle","followers_url":"https://api.github.com/users/GordonTheTurtle/followers","following_url":"https://api.github.com/users/GordonTheTurtle/following{/other_user}","gists_url":"https://api.github.com/users/GordonTheTurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonTheTurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonTheTurtle/subscriptions","organizations_url":"https://api.github.com/users/GordonTheTurtle/orgs","repos_url":"https://api.github.com/users/GordonTheTurtle/repos","events_url":"https://api.github.com/users/GordonTheTurtle/events{/privacy}","received_events_url":"https://api.github.com/users/GordonTheTurtle/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T02:01:56Z","updated_at":"2015-09-30T02:01:56Z","body":"Hi!\n\t\nPlease read this important information about creating issues.\n\nIf you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.\n\nIf you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.\n\nThis is an automated, informational response. \n\nThank you.\n\nFor more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues \n\n-----------------------------\nBUG REPORT INFORMATION\n-----------------------------\nUse the commands below to provide key information from your environment:\n\n`docker version`:\n`docker info`:\n`uname -a`:\n\nProvide additional environment details (AWS, VirtualBox, physical, etc.):\n\n\n\nList the steps to reproduce the issue:\n1.\n2.\n3.\n\n\nDescribe the results you received:\n\n\nDescribe the results you expected:\n\n\nProvide additional info you think is important:\n\n\n----------END REPORT ---------\n\n\n\n#ENEEDMOREINFO\n"}}