[btrfs] Docker and Subvolumes

Oh no..

[root@eha-desktop subvolumes]# ls -lah /var/lib/docker/btrfs/subvolumes/f29c1d4201f431bd4d3fa9e56265ffac3525b18b4f547cf0c0871a1796fa68ca/app/code/
total 12K
drwxr-xr-x 1 root root  52 13. Feb 16:06 .
drwxr-xr-x 1 root root   8 11. Feb 16:49 ..
-rw-r--r-- 1 root root  90 13. Feb 15:03 .env
-rwxr-xr-x 1 root root 682 13. Feb 16:27 start.sh
-rwxr-xr-x 1 root root 834 13. Feb 16:05 vhserver.sh
drwxr-xr-x 1 root root  36 11. Feb 16:50 web

The data of the docker volumes got never deleted..

To be sure:

╭─eha at eha-desktop in ⌁
╰─λ docker volume prune
WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
[root@eha-desktop docker]# du -h -d 1 btrfs/
409G	btrfs/subvolumes
409G	btrfs/

Holy...

Yep

This could be a reason why I have some performance problems since I did some development with docker.
I just assume this could be part of the problem since my system freezes happend pretty much after I started my docker work again.


In true docker fashion

Need to edit this video to also include diskspace :rofl:

1 Like