ADD of local tar fails if last layer of stage #907
Labels
area/dockerfile-command
For all bugs related to dockerfile file commands
kind/bug
Something isn't working
priority/p2
High impact feature/bug. Will get a lot of users happy
Milestone
Actual behavior
When an ADD command of a local tar archive is performed as the last command of the Dockerfile, the contents of the local tar are not in the image.
Expected behavior
I expect the resulting image to contain the contents of the local tar archive.
To Reproduce
localtar.tar
archive using:/localtar
directory:$ docker run --rm docker-built ls -al /localtar total 12 drwxr-xr-x 2 root root 4096 Dec 10 03:54 . drwxr-xr-x 1 root root 4096 Dec 10 04:18 .. -rw-r--r-- 1 502 dialout 39 Dec 10 03:50 Dockerfile
/localtar
directory:$ docker run --rm 172.17.0.2:5000/kaniko-built ls -al /localtar total 8 drwxr-xr-x 2 root root 4096 Dec 10 04:26 . drwxr-xr-x 1 root root 4096 Dec 10 04:29 ..
The resulting kaniko built image does not contain the tar archive's contents, whereas the docker built image does.
Additional Information
localtar.tar
can be created using:The following Pull Request fixes this issue: Fix Ability for ADD to unTar a file
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: