Closed alirezarm78 closed 6 months ago
Try this test cycle:
# creating a volume:
docker volume create -d wetopi/rbd -o pool=ssd -o size=1024 rbd_test
docker run --rm --name=rbd_test --mount type=volume,source=rbd_test,destination=/test,volume-driver=wetopi/rbd busybox sh -c 'touch /test/foo00'
# this shoudn't exist:
ls -l /var/lib/docker/plugins/*/propagated-mount/rbd_test
# volume should contain our foo00 file:
docker run --rm --name=rbd_test --mount type=volume,source=rbd_test,destination=/test,volume-driver=wetopi/rbd busybox sh -c 'ls -l /test/ | grep foo'
# after removing the volume the image shouldn't exist:
docker volume rm rbd_test
rbd --pool ssd ls | grep rbd_test
On my swarm cluster i can not delete my volume and when i run lsblk command i have too many rbd devices that mapped to host and not mounted to anywhere.