title: How to copy data from docker volume to host?
body: <p>I have created a docker volume &quot;hello&quot; and it contains some data .</p>
  <p>How can I copy the data to <em>host</em> ?</p>
  <p><strong>First :</strong></p>
  <pre><code>kerydeMacBook-Pro:~ hu$ docker volume create --name hello
  hello
  </code></pre>
  <p><strong>checking :</strong></p>
  <pre><code>kerydeMacBook-Pro:~ hu$ docker volume ls
  DRIVER              VOLUME NAME
  local               hello
  </code></pre>
  <p><strong>volume &quot;hello&quot; inspect</strong></p>
  <pre><code>kerydeMacBook-Pro:~ hu$  docker volume inspect hello
  [
      {
          &quot;Name&quot;: &quot;hello&quot;,
          &quot;Driver&quot;: &quot;local&quot;,
          &quot;Mountpoint&quot;: &quot;/mnt/sda1/var/lib/docker/volumes/hello/_data&quot;
      }
  ]
  </code></pre>
  <p><strong>How can i copy the data on the volume &quot;hello&quot; to host?</strong></p>
  <blockquote>
  <p>I tried :</p>
  </blockquote>
  <pre><code>kerydeMacBook-Pro:~ hu$  docker cp hello:/mnt/sda1/var/lib/docker/volumes/hello/_data /Users/hu/Desktop/12
  Error response from daemon: no such id: hello
  </code></pre>
  <p><strong>It does not work as expected!</strong></p>
  <p>Who can help me ?</p>