Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

423
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!