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

95
Vistas
Moving files into a Docker Data Volume

First I create a volume:

docker volume create --name some-volume

Then I create a file touch ~/somefile.txt

Now I want to move ~/somefile.txt into the root of the volume some-volume. How do I do this?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can do this with a container:

docker run --rm -v `pwd`:/source -v some-volume:/target \
  busybox cp -av /source/somefile.txt /target/somefile.txt

I will also use tar and stdin to pipe files into a remote volume over the docker client/server connection:

tar -cv -C source-dir . | \
  docker run --rm -i -v some-volume:/target busybox tar -xC /target

An export is similar:

docker run --rm -v some-volume:/source busybox tar -cC /source . | \
  tar -xC target-dir
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