HI all,
when using bind mounts and trying to extract a tar archive containing symlinks to it the extraction fails with "Cannot utime: No such file or directory". This only appears to happen on macOS (I'm using 10.14.5 and Docker Desktop 2.0.0.3).
Here are the steps to reproduce this:
$ rm -rf /tmp/gnulib-bug-symlinks
$ mkdir /tmp/gnulib-bug-symlinks
$ touch /tmp/gnulib-bug-symlinks/1
$ ln -s 1 /tmp/gnulib-bug-symlinks/2
$ tar cf test.tar -C /tmp gnulib-bug-symlinks/2 gnulib-bug-symlinks/1
$ docker run -it --rm -v $(pwd):/mnt debian:latest tar xvf /mnt/test.tar -C /mnt
The last step fails with:
tar: gnulib-bug-symlinks/2: Cannot utime: No such file or directory
Cheers!
/max