Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error response from daemon: stat /var/lib/docker/btrfs/subvolumes/[...]: no such file or directory [closed]

Tags:

docker

btrfs

I manually deleted a docker managed subvolumes

btrfs subvolume delete /var/lib/docker/btrfs/subvolumes/<subvolume id>

but when I try to recreate it gives me this error that I'm not able to solve without nuclearize the docker installation

Error response from daemon: stat /var/lib/docker/btrfs/subvolumes/<subvolume id>: no such file or directory

already tried to stop/rm -f the container, docker system prune -f and systemctl restart docker.service to no avail

like image 691
Hio Avatar asked Dec 28 '25 06:12

Hio


1 Answers

I also ended up with the error after deleting btrfs subvolumes myself (the bug that subvolumes are not freed by docker system prune still exists).

To recover, you have to delete /var/lib/docker as well:

systemctl stop docker
rm -rf /var/lib/docker
systemctl start docker
like image 84
Philipp Claßen Avatar answered Dec 30 '25 22:12

Philipp Claßen