{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18265","labels_url":"https://api.github.com/repos/docker/docker/issues/18265/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18265/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18265/events","html_url":"https://github.com/docker/docker/issues/18265","id":119080760,"number":18265,"title":"Docker-in-Docker: unable to delete container","user":{"login":"scf37","id":1148465,"avatar_url":"https://avatars.githubusercontent.com/u/1148465?v=3","gravatar_id":"","url":"https://api.github.com/users/scf37","html_url":"https://github.com/scf37","followers_url":"https://api.github.com/users/scf37/followers","following_url":"https://api.github.com/users/scf37/following{/other_user}","gists_url":"https://api.github.com/users/scf37/gists{/gist_id}","starred_url":"https://api.github.com/users/scf37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scf37/subscriptions","organizations_url":"https://api.github.com/users/scf37/orgs","repos_url":"https://api.github.com/users/scf37/repos","events_url":"https://api.github.com/users/scf37/events{/privacy}","received_events_url":"https://api.github.com/users/scf37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-26T17:06:14Z","updated_at":"2015-11-30T16:46:40Z","closed_at":null,"body":"Description of problem:\r\nWhen running Docker inside docker container, container cannot be deleted on exit\r\n\r\n`docker version`:\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\n\r\n`docker info`:\r\nContainers: 13\r\nImages: 207\r\nServer Version: 1.9.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 233\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.13.0-45-generic\r\nOperating System: Ubuntu 14.04.2 LTS\r\nCPUs: 8\r\nTotal Memory: 15.63 GiB\r\nName: host\r\nID: EAHP:SVL5:NE5G:76OH:PXYS:KJ2K:5R5W:MAGU:4R2Q:PVPW:E62X:LHFV\r\nWARNING: No swap limit support\r\n\r\n`uname -a`:\r\nLinux host 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):Physical\r\n\r\nHow reproducible: Always\r\n\r\nSteps to Reproduce:\r\nDockerfile:\r\n```\r\nFROM ubuntu:14.04\r\n\r\n# Let's start with some basic stuff.\r\nRUN apt-get update && apt-get install -y \\\r\n    apt-transport-https \\\r\n    ca-certificates \\\r\n    curl \\\r\n    iptables \\\r\n    ssh\r\n\r\n\r\nRUN curl -sSL https://get.docker.com/ | sh\r\n```\r\n\r\nRun docker build -t mydocker .\r\n\r\nThen run container, start docker service and exit:\r\n```\r\nuser@host:~$ docker run -it --rm -privileged mydocker /bin/bash\r\nWarning: '-privileged' is deprecated, it will be replaced by '--privileged' soon. See usage.\r\nroot@160d04d793ef:/# service docker start\r\n * Starting Docker: docker                                                                                                                                                                                                      [ OK ] \r\nroot@160d04d793ef:/# exit\r\nexit\r\nError deleting container: Error response from daemon: Driver aufs failed to remove root filesystem 160d04d793efe704af0f6394a5b02c3ea19635c460ffe74760a07b874be2187d: rename /var/lib/docker/aufs/diff/160d04d793efe704af0f6394a5b02c3ea19635c460ffe74760a07b874be2187d /var/lib/docker/aufs/diff/160d04d793efe704af0f6394a5b02c3ea19635c460ffe74760a07b874be2187d-removing: device or resource busy\r\n```\r\n\r\nActual Results:\r\nError message\r\n\r\nExpected Results:\r\nNo error message\r\n\r\nAdditional info:\r\nWill this mess my Docker installation?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/160685622","html_url":"https://github.com/docker/docker/issues/18265#issuecomment-160685622","issue_url":"https://api.github.com/repos/docker/docker/issues/18265","id":160685622,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","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":"2015-11-30T16:46:40Z","updated_at":"2015-11-30T16:46:40Z","body":"Also note; https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/"}}