Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda