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

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

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 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