[lxc-users] Problem with a docker pull & deleting btrfs subvolumes in a container

Lai Wei-Hwa whlai at robco.com
Thu Dec 7 21:35:41 UTC 2017


Howdy all, 

Host: Xenial 16.04 
LXD: Snappy 2.20 

When I try to pull and extract code for a docker container, I get: 
root at nextcloud:~# sudo docker pull collabora/code 
Using default tag: latest 
latest: Pulling from collabora/code 
bd97b43c27e3: Pull complete 
6960dc1aba18: Pull complete 
2b61829b0db5: Pull complete 
1f88dc826b14: Pull complete 
73b3859b1e43: Pull complete 
0f0e2d01915e: Pull complete 
2458b914d686: Pull complete 
a3e2abb56fa4: Extracting [==================================================>] 972.1 MB/972.1 MB 
failed to register layer: ApplyLayer exit status 1 stdout: stderr: operation not permitted 

Additionally, when I went to delete the btrfs subvolumes created by docker (maybe related to [ https://lists.linuxcontainers.org/pipermail/lxc-users/2015-February/008494.html | this issue ] ?): 
root at nextcloud:/var/lib/docker/btrfs/subvolumes# rm -rf * 
rm: cannot remove '3398c42dda6ee295d52d593a0e5334dd51a172826e5881ec9dff84bc37315c8d': Operation not permitted 
rm: cannot remove '37b4ed38bb85b4140ab416ff74317968e4e18fd2ffadb74236cfb4b4254f785b': Operation not permitted 
rm: cannot remove '44474f3511f76cda0cb0f4227c59981e8a830fc90f17a2e9376e0f6b35842590': Operation not permitted 
rm: cannot remove '5a7b74cc5a0e14d161d5ea942001b83812021260722e64da27cb315a52d6fa70': Operation not permitted 
rm: cannot remove '6b359e6c6a5714c0e227a444601c7d4c4ab281079ebecf712b772c553e52f65f': Operation not permitted 
rm: cannot remove '76ecc26b9fd080267c4e937f80b0993ce0e637847240f36dd3c434eae01fbb37': Operation not permitted 
rm: cannot remove '77e3c37a5af37ff8e66fe58349afac618882ac684de3231ffe12a163e9c7211f': Operation not permitted 
rm: cannot remove 'b62a1c869c9e9b7dbc8693b7b97c14cb7ccf09b3bf52e0d6a7656cc3bb50c312': Operation not permitted 
rm: cannot remove 'b9677d2c91cd0ccc00f8b557b56c103390c777b3e2574aee3a35595224665d75': Operation not permitted 
rm: cannot remove 'e3db5dcb5a3e25caae66eed98976d46ec46f17a0a3e3e94e0985635fc614ec54': Operation not permitted 

Which I'm assuming is the same issue causing: 
r oot at nextcloud:/var/lib/docker/btrfs/subvolumes# sudo apt remove --purge docker.io 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following packages were automatically installed and are no longer required: 
at-spi2-core bridge-utils cgroupfs-mount containerd gconf-service gconf-service-backend gconf2 gconf2-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatspi2.0-0 libavahi-glib1 
libbonobo2-0 libbonobo2-common libcanberra0 libfontenc1 libgconf-2-4 libgnome-2-0 libgnome2-common libgnomevfs2-0 libgnomevfs2-common libice6 liborbit-2-0 libsm6 libtdb1 libvorbisfile3 libxaw7 
libxcb-shape0 libxft2 libxmu6 libxt6 libxv1 libxxf86dga1 runc sound-theme-freedesktop ubuntu-fan x11-utils 
Use 'sudo apt autoremove' to remove them. 
The following packages will be REMOVED: 
docker.io* 
0 upgraded, 0 newly installed, 1 to remove and 11 not upgraded. 
After this operation, 62.7 MB disk space will be freed. 
Do you want to continue? [Y/n] y 
(Reading database ... 34706 files and directories currently installed.) 
Removing docker.io (1.13.1-0ubuntu1~16.04.2) ... 
'/usr/share/docker.io/contrib/nuke-graph-directory.sh' -> '/var/lib/docker/nuke-graph-directory.sh' 
Purging configuration files for docker.io (1.13.1-0ubuntu1~16.04.2) ... 

Nuking /var/lib/docker ... 
(if this is wrong, press Ctrl+C NOW!) 

+ sleep 10 

+ umount -f /var/lib/docker/btrfs 
umount: /var/lib/docker/btrfs: block devices are not permitted on filesystem 
dpkg: error processing package docker.io (--purge): 
subprocess installed post-removal script returned error exit status 32 
Processing triggers for man-db (2.7.5-1) ... 
Errors were encountered while processing: 
docker.io 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

Question 1: 
How can I get past the docker pull issue? 

Question 2: 
Does the btrfs subvolume issue mean that any subvolume in a container can't be removed? If it can, what's the proper way to remove them? 

Best Regards, 

Lai Wei-Hwa 
IT Administrator 
T. (514) 367-2252 ext 6308 C. (514) 218-7400 [ mailto:whlai at robco.com | whlai at robco.com ] 
Montreal - Toronto - Edmonton [ https://www.robco.com/ | www.robco.com ] 

ISO 9001 / 14001 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20171207/a277518b/attachment.html>


More information about the lxc-users mailing list