https://bugzilla.redhat.com/show_bug.cgi?id=1102019
Bug ID: 1102019 Summary: cannot remove /var/lib/docker just after a fresh install even when docker is stopped Product: Fedora EPEL Version: el6 Component: docker-io Severity: medium Priority: medium Assignee: lsm5@redhat.com Reporter: vdasgupt@redhat.com QA Contact: extras-qa@fedoraproject.org CC: admiller@redhat.com, golang@lists.fedoraproject.org, lsm5@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, s@shk.io, vbatts@redhat.com
Description of problem:
Cannot remove /var/lib/docker just after a fresh install even when docker is stopped. And even though the docker runtime root has been changed to /home/docker and is no longer /var/lib/docker
# rmdir /var/lib/docker rmdir: failed to remove `/var/lib/docker': Device or resource busy
lsof does not show anyone using this file/dir
Version-Release number of selected component (if applicable):
RHEL 6 Kernel 2.6.32-431.el6 Docker version 0.11.1, build fb99f99/0.11.1
Steps to Reproduce:
1. yum -y docker-io 2. service docker start ; service docker stop 3. add -g="/home/docker" to other_args in /etc/sysconfig/docker 4. service docker start ; service docker stop 5. checked that the docker runtime env files are now in /home/docker 6. Try to remove or rename /var/lib/docker and it does not allow
Actual results: rmdir: failed to remove `/var/lib/docker': Device or resource busy
Expected results: Should have removed or allowed to rename the directory
https://bugzilla.redhat.com/show_bug.cgi?id=1102019
--- Comment #1 from Vivek Dasgupta vdasgupt@redhat.com ---
# docker info Containers: 0 Images: 0 Storage Driver: devicemapper Pool Name: docker-253:4-3801090-pool Data file: /home/docker/devicemapper/devicemapper/data Metadata file: /home/docker/devicemapper/devicemapper/metadata Data Space Used: 291.5 Mb Data Space Total: 102400.0 Mb Metadata Space Used: 0.7 Mb Metadata Space Total: 2048.0 Mb Execution Driver: lxc-0.9.0 Kernel Version: 2.6.32-431.el6.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1102019
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dwalsh@redhat.com
--- Comment #2 from Daniel Walsh dwalsh@redhat.com --- We have a fix for this that has gotten pulled into upstream.
Fixed in docker-0.11.1-5.el7
https://bugzilla.redhat.com/show_bug.cgi?id=1102019
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2014-06-17 14:29:55
--- Comment #3 from Daniel Walsh dwalsh@redhat.com --- Since docker-1.0 is in epel, this should be fixed.
golang@lists.fedoraproject.org