docker-volume-glusterfs icon indicating copy to clipboard operation
docker-volume-glusterfs copied to clipboard

Plugin created nested directory in root of Glusterfs Volume

Open isac322 opened this issue 4 years ago • 1 comments

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

isac322 avatar Feb 09 '21 15:02 isac322

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.

isac322 avatar Feb 09 '21 15:02 isac322