title: Docker volume backup error: Tar: MYCONTAINER_VOLUME: Cannot stat: No such file or directory
body: <p>I'm trying to backup my volume as described here in the docker documentation: <a href="https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes" rel="nofollow noreferrer">https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes</a></p>
  
  <p>I'm running the command with the path to the volume: </p>
  
  <pre><code>docker run --rm --volumes-from MYCONTAINER -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /var/lib/docker/volumes/MYCONTAINER_VOLUME
  </code></pre>
  
  <p>... and also trying with just the name of my volume</p>
  
  <pre><code>docker run --rm --volumes-from MYCONTAINER -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar MYCONTAINER_VOLUME
  </code></pre>
  
  <p>but no matter what I get an error like: <code>tar: MYCONTAINER_VOLUME: Cannot stat: No such file or directory</code></p>
  
  <p>This volume was created and linked to the container with <code>docker-compose</code> and its using a local driver for the volume. </p>
  
  <p>When I run <code>docker volume ls</code> I get:</p>
  
  <pre><code>DRIVER              VOLUME NAME
  
  local               MYCONTAINER_VOLUME
  
  </code></pre>
  
  <p>Can someone please tell me what i'm doing wrong with this?</p>