ADDing file to symlink directory destroys symlink #774
Labels
area/file-extraction
kind/bug
Something isn't working
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
Actual behavior
ADD
ing a file to a directory that is a symlink to another directory destroys the symlink and recreates it as a directory.Expected behavior
The file is added to the symlink destination rather than destroying the symlink, like
docker build
does.To Reproduce
Create a file in the cwd that will be used for the docker context:
Dockerfile:
Build:
See how in the base container
/etc/service
is a symlink to/etc/runit/runsvdir/default
:Whereas in the kaniko-built container it's now a directory:
Additional information
docker build
does the expected thing of putting the file in the destination symlink.The text was updated successfully, but these errors were encountered: