title: How to install docker's btrfs volume plugin?
body: <p>When run command:</p>
  
  <pre><code>docker run -it -v some_volume:/abc/xyz --volume-driver=btrfs a_docker_image /bin/bash
  </code></pre>
  
  <p>terminal shows:</p>
  
  <pre><code>docker: Error response from daemon: create some_volume: Error looking up volume plugin btrfs: plugin not found.
  </code></pre>
  
  <p>====================</p>
  
  <p>But if create volume first:</p>
  
  <pre><code>docker volume create --opt type=btrfs --name some_volume
  </code></pre>
  
  <p>It will create volume successfully.  Now if I try to run container and create a new volume:</p>
  
  <pre><code>docker run -it -v some_volume:/abc/xyz --volume-driver=btrfs a_docker_image /bin/bash
  </code></pre>
  
  <p>It shows (of course it makes sense, since the same name volume has been already created):</p>
  
  <pre><code>docker: Error response from daemon: create some_volume: conflict: volume name must be unique.
  </code></pre>
  
  <p>And if I try to run container with the existing volume:</p>
  
  <pre><code>docker run -it -v some_volume:/abc/xyz a_docker_image /bin/bash
  </code></pre>
  
  <p>It returns:</p>
  
  <pre><code>docker: Error response from daemon: missing device in volume options.
  </code></pre>
  
  <p>====================</p>
  
  <p>Could anyone help tell me how to install the <strong>volume plugin btrfs</strong> for docker?  I haven't found any useful information regarding that except some introduction about plugin (but not how to install).  Thanks in advance.</p>
  
  <p>As suggested by @forevergenin in comments, here is my docker environment:</p>
  
  <p><code>docker version</code></p>
  
  <pre><code>Client:
   Version:      1.11.0
   API version:  1.23
   Go version:   go1.5.4
   Git commit:   4dc5990
   Built:        Wed Apr 13 18:13:28 2016
   OS/Arch:      darwin/amd64
  
  Server:
   Version:      1.11.0
   API version:  1.23
   Go version:   go1.5.4
   Git commit:   4dc5990
   Built:        Wed Apr 13 19:36:04 2016
   OS/Arch:      linux/amd64
  </code></pre>
  
  <p><code>docker info</code></p>
  
  <pre><code>Containers: 0
   Running: 0
   Paused: 0
   Stopped: 0
  Images: 39
  Server Version: 1.11.0
  Storage Driver: aufs
   Root Dir: /mnt/sda1/var/lib/docker/aufs
   Backing Filesystem: extfs
   Dirs: 121
   Dirperm1 Supported: true
  Logging Driver: json-file
  Cgroup Driver: cgroupfs
  Plugins:
   Volume: local
   Network: null host bridge
  Kernel Version: 4.1.19-boot2docker
  Operating System: Boot2Docker 1.11.0 (TCL 7.0); HEAD : 32ee7e9 - Wed Apr 13 20:06:49 UTC 2016
  OSType: linux
  Architecture: x86_64
  CPUs: 1
  Total Memory: 996.1 MiB
  Name: default
  ID: 74TB:OVH5:S3GD:UQUG:ILWG:5NVH:2MSH:5H7R:A5H4:GSLV:2Q6D:ZIR6
  Docker Root Dir: /mnt/sda1/var/lib/docker
  Debug mode (client): false
  Debug mode (server): true
   File Descriptors: 15
   Goroutines: 32
   System Time: 2016-08-15T13:57:03.866016657Z
   EventsListeners: 0
  Username: thyrlian
  Registry: https://index.docker.io/v1/
  Labels:
   provider=virtualbox
  </code></pre>