Original plugin: mikebarkmin/docker-volume-glusterfs
This is a managed Docker volume plugin to allow Docker containers to access GlusterFS volumes. The GlusterFS client does not need to be installed on the host and everything is managed within the plugin.
1 - Install the plugin
docker plugin install --alias glusterfs tommy4st/glusterfs-volume-plugin
# optional you can set a default server list and/or volume
docker plugin install --alias glusterfs tommy4st/glusterfs-volume-plugin SERVERS=<server1,server2,...,serverN> VOLNAME=<volname>
# or to enable debug
docker plugin install --alias glusterfs tommy4st/glusterfs-volume-plugin DEBUG=1
2 - Create a volume
Make sure the gluster volume exists.
Or the mounting of the volume will fail.
$ docker volume create -d glusterfs -o servers=<server1,server2,...,serverN> -o volname=<volname> -o subdir=<subdir> glustervolume
glustervolume
$ docker volume ls
DRIVER VOLUME NAME
glusterfs:next glustervolume
or if you set the defaults for the plugin, you can create a volume without any options:
$ docker volume create -d glusterfs glustervolume
glustervolume
$ docker volume ls
DRIVER VOLUME NAME
glusterfs:next glustervolume
3 - Use the volume
$ docker run -it -v glustervolume:<path> bash ls <path>
For additional options see man mount.glusterfs.
MIT
Content type
Plugin
Digest
Size
74.2 MB
Last updated
about 7 years ago
docker plugin install tommy4st/glusterfs-volume-plugin