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

422
Vistas
failing to `tar -zxvf` on a tarball with a symlink, inside Docker on Mac (tar: Cannot utime: No such file or directory)

i am doing a build inside a docker container of Alpine Linux on Docker-On-Mac. inside the tarball there is a symlink to a local file (README -> README.md) that is failing the untaring:

tar: tarname.tar.gz/README: Cannot utime: No such file or directory

two interesting facts:

  1. When running the same on Linux (Docker-on-Ubuntu running Alpine) it works flawlessly.
  2. when running twice it succeeds, because README.md is already in the partially-created dir.

unfortunately on (2) above, it is untarring as park of a build program (Alpine's abuild) so i cannot just run the tar command twice.

any thoughts?

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

0

tar tries to get the 'file modified time', which fails for some files. As I don't know the contents of the archive, I cannot say why this happens.

But you can circumvent this problem by using the -m a.k.a. --touch flag, which let's tar ignore/not query the modification time:

tar -m -xzvf tarname.tar.gz
over 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