{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10174","labels_url":"https://api.github.com/repos/docker/docker/issues/10174/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10174/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10174/events","html_url":"https://github.com/docker/docker/issues/10174","id":54732827,"number":10174,"title":"Failed to remove instance as device is busy","user":{"login":"krystism","id":5260798,"avatar_url":"https://avatars.githubusercontent.com/u/5260798?v=3","gravatar_id":"","url":"https://api.github.com/users/krystism","html_url":"https://github.com/krystism","followers_url":"https://api.github.com/users/krystism/followers","following_url":"https://api.github.com/users/krystism/following{/other_user}","gists_url":"https://api.github.com/users/krystism/gists{/gist_id}","starred_url":"https://api.github.com/users/krystism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krystism/subscriptions","organizations_url":"https://api.github.com/users/krystism/orgs","repos_url":"https://api.github.com/users/krystism/repos","events_url":"https://api.github.com/users/krystism/events{/privacy}","received_events_url":"https://api.github.com/users/krystism/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-19T07:07:53Z","updated_at":"2015-01-21T13:41:59Z","closed_at":"2015-01-21T13:41:59Z","body":"# Description of problem\r\nI want to remove all my instances as follows:\r\n```\r\ndocker rm -f  `docker ps -a -q`\r\n```\r\nHowever, it seems that I  **FAILED TO REMOVE ANY ONE**, the output is:\r\n```\r\nError response from daemon: Cannot destroy container b719f5700c1c: Driver devicemapper failed to remove root filesystem b719f5700c1c3f17e6f61506de1326e736d63aa692150957baa82cb882ab02ed: Device is Busy\r\n...\r\n...\r\nFATA[0137] Error: failed to remove one or more containers\r\n```\r\nBut when I exec\r\n``` \r\ndocker ps -a\r\n```\r\nI can't find any instance from the output, it seems to remove them successfully! \r\nBut That's just a *pseudomorph*，the docker  lies to me! when I restart the docker daemon, All these guys emerge like the ghost.\r\n# Environment details\r\nThe docker is running on an instance of openstack using kvm.\r\n```\r\nkrystism@docker:~$ docker version\r\nClient version: 1.4.1\r\nClient API version: 1.16\r\nGo version (client): go1.3.3\r\nGit commit (client): 5bc2ff8\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.4.1\r\nServer API version: 1.16\r\nGo version (server): go1.3.3\r\nGit commit (server): 5bc2ff8\r\n\r\nkrystism@docker:~$ docker info\r\nContainers: 13\r\nImages: 351\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:1-131744-pool\r\n Pool Blocksize: 65.54 kB\r\n Data file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Data Space Used: 10.35 GB\r\n Data Space Total: 107.4 GB\r\n Metadata Space Used: 18.11 MB\r\n Metadata Space Total: 2.147 GB\r\n Library Version: 1.02.82-git (2013-10-04)\r\nExecution Driver: native-0.2\r\nKernel Version: 3.13.0-35-generic\r\nOperating System: Ubuntu 14.04.1 LTS\r\nCPUs: 2\r\nTotal Memory: 3.861 GiB\r\nName: docker\r\nID: ALD7:CBPH:KKHE:KDBQ:GWAF:LXRR:E6Z5:6M5S:3RGY:MA4D:NWKB:QIK7\r\nWARNING: No swap limit support\r\n\r\nkrystism@docker:~$ uname -a\r\nLinux docker 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n# Steps to Reproduce\r\n1. Create some containers.\r\n2. Try to remove them.\r\n3. Restart the docker daemon.\r\n4. Exec \"docker ps -a\".\r\n\r\nActual Results: All the removed container emerge again.\r\nExpected Results: Should not show any instance.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/70838147","html_url":"https://github.com/docker/docker/issues/10174#issuecomment-70838147","issue_url":"https://api.github.com/repos/docker/docker/issues/10174","id":70838147,"user":{"login":"unclejack","id":1409668,"avatar_url":"https://avatars.githubusercontent.com/u/1409668?v=3","gravatar_id":"","url":"https://api.github.com/users/unclejack","html_url":"https://github.com/unclejack","followers_url":"https://api.github.com/users/unclejack/followers","following_url":"https://api.github.com/users/unclejack/following{/other_user}","gists_url":"https://api.github.com/users/unclejack/gists{/gist_id}","starred_url":"https://api.github.com/users/unclejack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclejack/subscriptions","organizations_url":"https://api.github.com/users/unclejack/orgs","repos_url":"https://api.github.com/users/unclejack/repos","events_url":"https://api.github.com/users/unclejack/events{/privacy}","received_events_url":"https://api.github.com/users/unclejack/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T13:41:59Z","updated_at":"2015-01-21T13:41:59Z","body":"This is a duplicate of #5684 and #4036.\r\n\r\nThis particular error will be fixed by #10225. Other errors seen in #4036 have been fixed by #10195.\r\n\r\nI'm going to close this now."}}