I have a btrfs partition (mounted on /srv
) on my host system with a
subvolume (old
).
I would like to manage it from a docker container (I have launched it
with -v /srv:/srv
).
While I'm perfectly able to create a snapshot of it, I can not list other subvolume and/or delete them:
user@host:~$ docker exec -ti jenkins-slave bash
root@a5496f6bd14b:~# btrfs subvolume snapshot /srv/old /srv/new
Create a snapshot of '/srv/old' in '/srv/new'
root@a5496f6bd14b:~# ls /srv
new old
root@a5496f6bd14b:~# btrfs subvolume delete /srv/new
Delete subvolume (no-commit): '/srv/new'
ERROR: cannot delete '/srv/new': Operation not permitted
root@a5496f6bd14b:~# btrfs subvolume list /srv/new
ERROR: can't perform the search - Operation not permitted
root@a5496f6bd14b:~# ls /srv
new old
While I'm still able to do it from the host system.