Volume plugins (Engine)
Write a volume plugin
Docker Engine volume plugins enable Engine deployments to be integrated with external storage systems, such as Amazon EBS, and enable data volumes to persist beyond the lifetime of a single Engine host. See the plugin documentation for more information.
Command-line changes
A volume plugin makes use of the -v
and --volume-driver
flag on the docker run
command. The -v
flag accepts a volume name and the --volume-driver
flag a driver type, for example:
$ docker run -ti -v volumename:/data --volume-driver=flocker busybox sh
This command passes the volumename
through to the volume plugin as a user-given name for the volume. The volumename
must not begin with a /
.
By having the user specify a