
[Docker](http://www.docker.io) is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.
driver "btrfs" failed to remove root filesystem: Failed to destroy btrfs snapshot
Hi all,
I was getting some error during starting containers so I've decided to delete all my images and containers and start from scratch. I've deleted all my containers except of 3 which are giving the following error:
# docker rm $(docker ps -aq) Error response from daemon: container 83...d2: driver "btrfs" failed to remove root filesystem: Failed to destroy btrfs snapshot /var/lib/docker/btrfs/subvolumes for 3f...f5: invalid argument
I've looked for these snapshots:
# btrfs sub list -a / | grep 20...3f ID 465 gen 531988 top level 257 path <FS_TREE>/@.broken.20190830a/var/lib/docker/btrfs/subvolumes/20...3f-init ID 466 gen 531988 top level 257 path <FS_TREE>/@.broken.20190830a/var/lib/docker/btrfs/subvolumes/20...3f
It seems they were in an old, broken btrfs subvolume. So I mounted it under /mnt and deleted the first one, but I'm still getting the same error as above.
When I list the containers:
# docker ps -a
their status is: Removal In Progress
How can I get rid of these subvolumes?
I've already found similar threads:
https://unix.stackexchange.com/questions/188860/how-to-delete-btrfs-subvolume
https://askubuntu.com/questions/441375/cant-delete-a-btrfs-snapshot
https://bbs.archlinux.org/viewtopic.php?id=250190
but they didn't really help.
I have the same exact issue! did you managed to solve it?