-
This driver was built and developed by following the documentations of https://docs.docker.com/engine/extend/config/#config-field-descriptions and https://blog.codeship.com/extend-docker-via-plugin/
-
This driver can mount the volume at the mountpoint provided in the path(should be an absolute host path only), if the mount volume doesn't exists, a new volume with the specified volume-name is created at the path and mounts it.
- sudo mkdir -p /tmp/mntdir1 /etc/mntdir2
- sudo docker plugin install maheshreddy7797/docker-volume-driver:latest
OR
- git clone https://github.com/maheshreddy7797/docker-volume-driver.git
- cd docker-volume-driver
- sudo make
docker plugin ls
ID NAME DESCRIPTION ENABLED
12fb9b1c43c8 maheshreddy7797/docker-volume-driver:latest Example volume plugin true
docker volume create -d maheshreddy7797/docker-volume-driver -o user=admin -o password=open -o size=1G --name=demovol
demovol
docker volume ls
DRIVER VOLUME NAME
local database
maheshreddy7797/docker-volume-driver demovol
docker run -it -v demovol:/data alpine sh