moby: [aufs] Unable to delete a container when / partition is mounted
Hi guys,
BUG REPORT INFORMATION
docker version
:
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64
Server: Version: 1.9.0 API version: 1.21 Go version: go1.4.2 Git commit: 76d6bc9 Built: Tue Nov 3 17:43:42 UTC 2015 OS/Arch: linux/amd64
docker info
:
Containers: 11
Images: 181
Server Version: 1.9.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 205
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-43-generic
Operating System: Ubuntu 14.04.1 LTS
CPUs: 1
Total Memory: 987.9 MiB
Name: ch-lundi3
ID: CVYX:O4VO:FX57:K7JU:PG6N:DZRV:GXW7:XN2E:4LUO:QSF4:B2YJ:CYRZ
WARNING: No swap limit support
uname -a
:
Linux ch-lundi3 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce the problem
1- docker run -d --name lafauteaqui -v /:/check:ro ubuntu:14.04 /bin/sh -c ‘while true; do echo la_faute_a_flop; sleep 1; done’ 2- docker run -it --rm ubuntu:14.04 3- docker restart lafauteaqui 4- Try to exit the shell in the container started during step2:
Error deleting container: Error response from daemon: Driver aufs failed to remove root filesystem 3d1e082f48eb875d3f2117342b082e1aca84164bfa7ccf253c53e0dc38f61e77: rename /var/lib/docker/aufs/mnt/3d1e082f48eb875d3f2117342b082e1aca84164bfa7ccf253c53e0dc38f61e77 /var/lib/docker/aufs/mnt/3d1e082f48eb875d3f2117342b082e1aca84164bfa7ccf253c53e0dc38f61e77-removing: device or resource busy
Describe the results you received: It should exit gracefully
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 37 (10 by maintainers)
This happened to me on Ubuntu 14.04 with docker-compose when I attempted to bind mount the volume /dev/log:/dev/log:rw.
Same issue with version Docker version 1.10.3, build 20f81dd
Solved unmounting the dir: umount /var/lib/docker/aufs/mnt/197c9141c021c89569db52218795528ae6621ebeea3cc5403613c97b56fe8720
I’m not sure it’s ok what I did … but it worked! 😉