container-diff icon indicating copy to clipboard operation
container-diff copied to clipboard

File analyzer reporting incorrect file sizes

Open nkubala opened this issue 6 years ago • 0 comments

For some files, it looks like the file analyzer is incorrectly computing the sizes of the files.

➜  docker run -it --entrypoint=/bin/bash gcr.io/kaniko-test/kaniko-dockerfile_test_user_run
testuser@255b1e956c6e:/$ ls -la /var/log
...
-rw-r--r-- 1 root root  32032 May 21 22:00 faillog
-rw-rw-r-- 1 root utmp 292292 May 21 22:00 lastlog
...

testuser@255b1e956c6e:/$ ls -la /var/log/apt
-rw-r--r-- 1 root root 1020 Jan  1  1970 history.log
-rw-r----- 1 root adm   134 Jan  1  1970 term.log
➜ container-diff analyze daemon://gcr.io/kaniko-test/kaniko-dockerfile_test_user_run --type=file | grep "/var/log"

Retrieving analyses
/var/log/faillog          3.2K
/var/log/lastlog          28.8K
...
/var/log/apt/history.log  1020B
/var/log/apt/term.log     134B

In this case, faillog and lastlog were incorrectly sized, but history.log and term.log were reported correctly.

nkubala avatar May 22 '18 23:05 nkubala