{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18849","labels_url":"https://api.github.com/repos/docker/docker/issues/18849/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18849/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18849/events","html_url":"https://github.com/docker/docker/issues/18849","id":123491731,"number":18849,"title":"Docker commit never finishes and fills disk","user":{"login":"williamsbdev","id":2402655,"avatar_url":"https://avatars.githubusercontent.com/u/2402655?v=3","gravatar_id":"","url":"https://api.github.com/users/williamsbdev","html_url":"https://github.com/williamsbdev","followers_url":"https://api.github.com/users/williamsbdev/followers","following_url":"https://api.github.com/users/williamsbdev/following{/other_user}","gists_url":"https://api.github.com/users/williamsbdev/gists{/gist_id}","starred_url":"https://api.github.com/users/williamsbdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamsbdev/subscriptions","organizations_url":"https://api.github.com/users/williamsbdev/orgs","repos_url":"https://api.github.com/users/williamsbdev/repos","events_url":"https://api.github.com/users/williamsbdev/events{/privacy}","received_events_url":"https://api.github.com/users/williamsbdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T14:37:19Z","updated_at":"2015-12-22T14:37:19Z","closed_at":null,"body":"I am attempting to commit a docker container id and in the process of doing so, seeing that it never finishes and continues to fill disk space taking roughly 1 GB every 3 seconds.\r\n\r\nI am running Ubuntu 15.10.\r\n\r\ndocker version:\r\nClient:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 17:48:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\ndocker info:\r\nContainers: 21\r\nImages: 394\r\nServer Version: 1.9.0\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 447\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.19.0-15-generic\r\nOperating System: Ubuntu 15.10\r\nCPUs: 8\r\nTotal Memory: 31.36 GiB\r\nName: <machine_name>\r\nID: CRO3:UP2J:LX2Z:PVD6:FI64:RTTP:PVDA:BYAW:JYIE:MCUI:OBY5:7KKV\r\nWARNING: No swap limit support\r\n\r\nuname -a:\r\nLinux <machine_name> 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nThis is happening on dev machine.\r\n\r\nThis is reproducible every time I am running this docker commit. In my script I am adding a user to the docker container and then when I go to do a docker commit it will hang and slowly eat up the disk. My example it is slow since the container is smaller and shows only the basic problem, when I am doing this at work, our container is larger and seems to fill the disk much faster (at the rate of approximately 1GB/3 seconds).\r\n\r\nHere is a link to an [example repo](https://github.com/williamsbdev/docker-commit-issue) of what we are doing to produce this issue.\r\n\r\nSteps to Reproduce:\r\n`git clone https://github.com/williamsbdev/docker-commit-issue`\r\n`./build.sh`\r\n\r\nActual Results:\r\nThis will result in the `docker commit` command never finishing and filling the disk. In order to stop docker from consuming all available disk space, you will need to kill the docker deamon `service docker stop`.\r\n\r\nExpected Results:\r\nI expect this command to finish like it will if I modify the `build.sh` to remove the `/add-user.sh` from the following command:\r\n\r\n```bash\r\nCONTAINER_ID=`docker run -d \\                                                                                                                     \r\n    -e \"EXTERNAL_USER_ID=$EUID\" \\                                                                                                                 \r\n    some-docker-image \\                                                                                                                           \r\n    /add-user.sh                                                                                                                                  \r\n`\r\n```"}}