github.com/webwurst/docker@v1.7.0/experimental/plugins_volume.md (about)

     1  # Experimental: Docker volume plugins
     2  
     3  Docker volume plugins enable Docker deployments to be integrated with external
     4  storage systems, such as Amazon EBS, and enable data volumes to persist beyond
     5  the lifetime of a single Docker host. See the [plugin documentation](/experimental/plugins.md)
     6  for more information.
     7  
     8  This is an experimental feature. For information on installing and using experimental features, see [the experimental feature overview](README.md).
     9  
    10  # Command-line changes
    11  
    12  This experimental features introduces two changes to the `docker run` command:
    13  
    14  - The `--volume-driver` flag is introduced.
    15  - The `-v` syntax is changed to accept a volume name a first component.
    16  
    17  Example:
    18  
    19      $ docker run -ti -v volumename:/data --volume-driver=flocker busybox sh
    20  
    21  By specifying a volume name in conjunction with a volume driver, volume plugins
    22  such as [Flocker](https://clusterhq.com/docker-plugin/), once installed, can be
    23  used to manage volumes external to a single host, such as those on EBS. In this
    24  example, "volumename" is passed through to the volume plugin as a user-given
    25  name for the volume which allows the plugin to associate it with an external
    26  volume beyond the lifetime of a single container or container host. This can be
    27  used, for example, to move a stateful container from one server to another.
    28  
    29  The `volumename` must not begin with a `/`.
    30  
    31  # API changes
    32  
    33  The container creation endpoint (`/containers/create`) accepts a `VolumeDriver`
    34  field of type `string` allowing to specify the name of the driver. It's default
    35  value of `"local"` (the default driver for local volumes).
    36  
    37  # Related GitHub PRs and issues
    38  
    39  - [#13161](https://github.com/docker/docker/pull/13161) Volume refactor and external volume plugins
    40  
    41  Send us feedback and comments on [#13420](https://github.com/docker/docker/issues/13420),
    42  or on the usual Google Groups (docker-user, docker-dev) and IRC channels.