docker-volume-glusterfs
docker-volume-glusterfs copied to clipboard
Plugin created nested directory in root of Glusterfs Volume
When I mount volume agh using mount on host machine tree print like below.
sudo mount -t glusterfs SERVERS:/agh testd
testd
├── agh
│ └── test2
└── test
(I didn't create tested/agh. It was automatically generated when I create Docker volume with this plugin and mount it on container)
But when I create Docker volume using this plugin and mount it on container, tree prints like below.
sudo docker run --rm -ti -v agh:/mnt alpine
/mnt/
└── test2
https://github.com/mikebarkmin/docker-volume-glusterfs/blob/787da40653ede0ee0f35c563e4b7f6349080a696/main.go#L112
Is it intended? If so, I think it would be good if I could decide whether to use subdir option or not.