Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

227
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda