'Error response from daemon: stat /var/lib/docker/btrfs/subvolumes/[...]: no such file or directory
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
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Philipp Claßen |