{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17902","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/17902/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17902/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17902/events","html_url":"https://github.com/docker/docker/issues/17902","id":116319924,"number":17902,"title":"Unable to remove filesystem for xxx: remove /var/lib/docker/containers/xxx/shm: device or resource busy","user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T11:56:36Z","updated_at":"2016-05-09T07:47:10Z","closed_at":null,"body":"Docker is unable to remove a container if another container has bind-mounted `/var/lib/docker/containers`.  Only hits with older kernel, e.g. 3.13.  Does not happen with newer kernel, e.g. 3.19.  Also does not happen with Docker 1.8.\r\n\r\nThis is a repro carefully crafted to use only the simple `alpine` image, nothing fancy.\r\n\r\n`docker version`:\r\n````\r\nClient:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 19:20:09 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 19:20:09 UTC 2015\r\n OS/Arch:      linux/amd64\r\n````\r\n\r\n`docker info`:\r\n````\r\nContainers: 1\r\nImages: 93\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: 95\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.13.0-55-generic\r\nOperating System: Ubuntu 14.04.2 LTS\r\nCPUs: 1\r\nTotal Memory: 490 MiB\r\nName: weave-gs-01\r\nID: LLWG:CZWC:AHZP:EA5W:5MG5:5IOC:C6GD:JKBJ:ZI2V:FMFT:ZNXG:G2OW\r\nWARNING: No swap limit support\r\n````\r\n\r\n`uname -a`:\r\n````\r\nLinux weave-gs-01 3.13.0-55-generic #92-Ubuntu SMP Sun Jun 14 18:32:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n````\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\nVirtualBox VM in the above example; get identical symptoms from stock GCE RHEL 7.1.\r\n\r\nHow reproducible:\r\n100% on older kernel; does not happen on newer kernel.\r\n\r\nSteps to Reproduce:\r\n````\r\n$ docker run --name c1 -tdi alpine /bin/sh\r\n3b1a8ae179c72c2b411e65a8e4099b61fbfd91f1843f86594bea51f56ca40766\r\n$ docker run --name c2 -tdi -v /var/lib/docker/containers:/var/lib/docker/containers alpine /bin/sh\r\n1938a9588bfd4708f82294ab9b2be509b6053a9802482565916ab403ae1fe729\r\n$ docker rm -f c1\r\n````\r\n\r\nActual Results:\r\n````\r\nError response from daemon: Unable to remove filesystem for 3b1a8ae179c72c2b411e65a8e4099b61fbfd91f1843f86594bea51f56ca40766: remove /var/lib/docker/containers/3b1a8ae179c72c2b411e65a8e4099b61fbfd91f1843f86594bea51f56ca40766/shm: device or resource busy\r\nError: failed to remove containers: [c1]\r\n````\r\n\r\nExpected Results:\r\n````\r\nc1\r\n````\r\n\r\nAdditional info:\r\nThis is similar to #17823, although it only hits on older kernels.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/217797472","html_url":"https://github.com/docker/docker/issues/17902#issuecomment-217797472","issue_url":"https://api.github.com/repos/docker/docker/issues/17902","id":217797472,"user":{"login":"yank1","id":9472593,"avatar_url":"https://avatars.githubusercontent.com/u/9472593?v=3","gravatar_id":"","url":"https://api.github.com/users/yank1","html_url":"https://github.com/yank1","followers_url":"https://api.github.com/users/yank1/followers","following_url":"https://api.github.com/users/yank1/following{/other_user}","gists_url":"https://api.github.com/users/yank1/gists{/gist_id}","starred_url":"https://api.github.com/users/yank1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yank1/subscriptions","organizations_url":"https://api.github.com/users/yank1/orgs","repos_url":"https://api.github.com/users/yank1/repos","events_url":"https://api.github.com/users/yank1/events{/privacy}","received_events_url":"https://api.github.com/users/yank1/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T07:47:10Z","updated_at":"2016-05-09T07:47:10Z","body":"+1"}}