4.2. Installing Docker Volume Plug-in

To enable a Docker volume to be hosted on Virtuozzo Storage, you need to install the plug-in docker-volume-ploop on each node in the Docker cluster (as Virtuozzo Storage uses ploop to host filesystem images).

You can install and enable the plug-in with Docker:

# docker plugin install virtuozzo/ploop:1.0


If you need to set a custom home path instead of the default /mnt/vstorage, add the parameter vstorage.source=<path> to the command above.

Alternatively, you can build it from source hosted at GitHub:

  1. Install the ploop-devel package:

    # yum install ploop-devel
  2. Install Git and Go and configure the GOPATH environment variable:

    # yum -y install golang git
    # echo 'export GOPATH=$HOME/go' >> ~/.bash_profile
    # echo 'PATH=$GOPATH/bin:$PATH' >> ~/.bash_profile
    # . ~/.bash_profile
  3. Install the plug-in:

    # go get github.com/virtuozzo/docker-volume-ploop
  4. Install the configuration files:

    # cd $GOPATH/src/github.com/*/docker-volume-ploop && make install

After installing the plug-in either way, set redundancy for the Docker volume subdirectory. On any Virtuozzo Storage node, run the following command (given that you use the default Virtuozzo Storage mount path):

# vstorage set-attr -R /mnt/vstorage/dkv replicas=3

This command will set the normal number of replicas for the data in the subdirectory to 3 and the minimum number of replicas to 2. (For more details on data redundancy and high availability features of Virtuozzo Storage, see the Virtuozzo Storage 2 Administrator’s Guide.)