{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/21925","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/21925/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/21925/comments","events_url":"https://api.github.com/repos/moby/moby/issues/21925/events","html_url":"https://github.com/moby/moby/issues/21925","id":147372299,"node_id":"MDU6SXNzdWUxNDczNzIyOTk=","number":21925,"title":"Docker does not free up disk space after container, volume and image removal","user":{"login":"stouf","id":2033517,"node_id":"MDQ6VXNlcjIwMzM1MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/2033517?v=4","gravatar_id":"","url":"https://api.github.com/users/stouf","html_url":"https://github.com/stouf","followers_url":"https://api.github.com/users/stouf/followers","following_url":"https://api.github.com/users/stouf/following{/other_user}","gists_url":"https://api.github.com/users/stouf/gists{/gist_id}","starred_url":"https://api.github.com/users/stouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stouf/subscriptions","organizations_url":"https://api.github.com/users/stouf/orgs","repos_url":"https://api.github.com/users/stouf/repos","events_url":"https://api.github.com/users/stouf/events{/privacy}","received_events_url":"https://api.github.com/users/stouf/received_events","type":"User","site_admin":false},"labels":[{"id":375241603,"node_id":"MDU6TGFiZWwzNzUyNDE2MDM=","url":"https://api.github.com/repos/moby/moby/labels/version/1.8","name":"version/1.8","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":113,"created_at":"2016-04-11T09:44:43Z","updated_at":"2018-10-19T14:16:20Z","closed_at":null,"author_association":"NONE","body":"# Versions & co\r\n## Docker\r\n\r\nDocker version\r\n\r\n``` bash\r\n$ docker version\r\nClient:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:19:00 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:19:00 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\nDocker info:\r\n\r\n``` bash\r\n$ docker info\r\nContainers: XXX\r\nImages: XXX\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: XXX\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.19.0-26-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 1\r\nTotal Memory: XXX GiB\r\nName: XXX\r\nID: XXXX:XXXX:XXXX:XXXX\r\n```\r\n## Operating system\r\n\r\nLinux 3.19.0-26-generic #28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n# Issue\r\n\r\nHere is how I currently deploy my application:\r\n1. Build a new image based on a new version of my application code\r\n2. Up a new container based on the image created in `1`\r\n3. Remove the previous container and its volume with the command `docker rm -v xxxxx`\r\n4. Remove all the unused images with `docker rmi $(docker images -q)`\r\n\r\nHowever, little by little, I'm running out of disk space. I made sure I don't have any orphan volumes, unused containers and images, etc...\r\n\r\nI found [a post on a forum](http://stackoverflow.com/questions/27853571/why-is-docker-image-eating-up-my-disk-space-that-is-not-used-by-docker) telling the following\r\n\r\n> It's a kernel problem with devicemapper, which affects the RedHat family of OS (RedHat, Fedora, CentOS, and Amazon Linux). Deleted containers don't free up mapped disk space. This means that on the affected OSs you'll slowly run out of space as you start and restart containers.\r\n> \r\n> The Docker project is aware of this, and the kernel is supposedly fixed in upstream (https://github.com/docker/docker/issues/3182).\r\n\r\nMy machine being a Linux hosted on AWS, I wonder if the kernel I'm using could be related to the issue I referenced above ?\r\nIf not, does any one has an idea about what could be the origin of this problem ? I spent the whole day looking for a solution, but could not find any so far :(\r\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/431378220","html_url":"https://github.com/moby/moby/issues/21925#issuecomment-431378220","issue_url":"https://api.github.com/repos/moby/moby/issues/21925","id":431378220,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTM3ODIyMA==","user":{"login":"thaJeztah","id":1804568,"node_id":"MDQ6VXNlcjE4MDQ1Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1804568?v=4","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T14:16:20Z","updated_at":"2018-10-19T14:16:20Z","author_association":"MEMBER","body":"^^ those instructions will remove all containers, images and so on"}}
{"actor":{"display_login":"thaJeztah"}}