Bug 1037634
Summary: | The devicemapper volumes are not removed after container is removed | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Fojtik <mfojtik> |
Component: | docker-io | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | agk, alexl, dwalsh, golang-updates, jkeck, lsm5, mattdm, mgoldman, raina, ricardo.arguello, vbatts |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-05-28 18:19:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Fojtik
2013-12-03 14:10:39 UTC
[root@localhost postgresql]# docker images -a REPOSITORY TAG IMAGE ID CREATED SIZE mattdm/fedora f19 a567e6f3d26a 5 days ago 348.4 MB (virtual 348.4 MB) mattdm/fedora latest 64e0619c473e 6 days ago 349.8 MB (virtual 349.8 MB) mattdm/fedora f20 1bdd590de956 5 weeks ago 348 MB (virtual 348 MB) mattdm/fedora f20rc3.small 97fc5bf7f8d4 10 weeks ago 198.4 MB (virtual 198.4 MB) There are two issues here. First, there is a bug where we never remove the -init layers. And secondly, there are mounts for the images, which will go away if you remove them (rmi), but these mounts are kinda unnecessary as they are not currenly in use, and we should probably unmount them to keep the system "cleaner". Also there might be additional bug, related to this. I just discovered that my /var/lib/docker folder use 11G of space, with no containers running and no extra images... Seems like they will need to be collected as well :-) in /var/lib/docker: 11G ./devicemapper .... 3.2G ./devicemapper/mnt 11G ./devicemapper Michal: Not sure what you mean, you seem to have some mounts with 3.2 gigs of data in /var/lib/devicemapper/mnt, which implies that you have either a container or an image. Plus, the loopback mounts in the devicemapper folder are not zero size even if there are no containers/images in it. The -init layer deletion is fixed in master and will be in 0.7.1 This will make us unmount not used devices: https://github.com/dotcloud/docker/pull/3073 |