Docker (and other tools) appear to not properly convert directory symlinks on either docker build
+COPY . .
or docker cp
to a running container
git clone
, by default, for file symlinks it copies the data to both source and target files and for directory symlinks it creates empty files instead of a directory
git clone -c core.symlinks=true
recreates file and directory symlinks correctly but is not the default
tar.exe
creates tar but when extracted, the symlink is an empty file (same for ustar
, pax
formats)