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.
docker volume inspect app_datadocker run --rm --volumes-from database -v $(pwd):/backup debian:jessie tar cvf /backup/backup.tar /app_dataHowever, I cannot get either one of these options to work for me.
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?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!
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