Description
Steps to reproduce the issue:
- Setup a lxc (or lxd) environment with btrfs as backend
- Create a unprivileged lxc container
- Install docker, run a Container and stop it
Describe the results you received:
docker run --rm java:8-jdk java -version
Unable to find image 'java:8-jdk' locally
8-jdk: Pulling from library/java
75a822cd7888: Pull complete
57de64c72267: Pull complete
4306be1e8943: Pull complete
1e6944bfb718: Pull complete
3521f2f45ed2: Pull complete
9c2f0d9b5f90: Pull complete
8cedcf6d2527: Pull complete
31f99da7583d: Pull complete
Digest: sha256:6bfae6cf8902a28d3f0209f5cdbb269032762a94835d331811df33498970aa7e
Status: Downloaded newer image for java:8-jdk
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
Error response from daemon: Driver btrfs failed to remove root filesystem 564cc6dfd81f417a075ab8d3d12fc60d5c83f648b9f3006393e5b7a75909a779: Failed to rescan btrfs quota for &{}: operation not permitted
Describe the results you expected:
btrfs subvolume and container are removed.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker info:
root@gitlab:~# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.1
Storage Driver: btrfs
Build Version: Btrfs v4.4
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.4.0-57-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 2.5 GiB
Name: gitlab
ID: HLAE:VWC6:XEYO:TGPC:JPHJ:MCV7:PNFY:W4EN:4XZQ:WHVA:QU7G:M33M
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://proxy:3128
Https Proxy: http://proxy:3128
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
127.0.0.0/8
Additional environment details (AWS, VirtualBox, physical, etc.):
LXC Container
Issue appears since this commit: 401c8d1
Description
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
btrfs subvolume and container are removed.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker info:Additional environment details (AWS, VirtualBox, physical, etc.):
LXC Container
Issue appears since this commit: 401c8d1