Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
How to export a named docker volume on a Mac?

I have a docker named volume called "app_data". I simply want to export this volume so that I can move it to a different host machine.

After some reading, I understand there're 2 ways of doing this.

  1. Retrieve the volume file from host file system as discovered by the command docker volume inspect app_data
  2. Create a TAR ball export from docker volume using a command close to docker run --rm --volumes-from database -v $(pwd):/backup debian:jessie tar cvf /backup/backup.tar /app_data

However, I cannot get either one of these options to work for me.

  1. Option 1 is not working for me as I am running this on a Mac and what docker volume inspect app_data gives me is the path of the VM file system. Is there a way to access this file from VM to my Mac?
  2. Option 2 is not working as it fails saying tar: Removing leading '/' from member names tar: /app_data: Cannot stat: No such file or directory Am i using this command correctly?

I am looking for the minimal set of commands to get this job done. Appreciate your help. Thanks!

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It looks like your second option should work. Perhaps trying mounting the volume explicitly docker run -v app_data:/app_data

If you're still having problems, you can actually mount the Docker VM storage, which is a qcow file, using https://github.com/libyal/libqcow/wiki/Mounting

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!