Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot includes whole image #1569

Open
markus-seidl opened this issue Feb 2, 2021 · 2 comments
Open

Snapshot includes whole image #1569

markus-seidl opened this issue Feb 2, 2021 · 2 comments
Labels
area/behavior all bugs related to kaniko behavior like running in as root

Comments

@markus-seidl
Copy link

markus-seidl commented Feb 2, 2021

Actual behavior
We have a Dockerfile with the following contents

FROM <ourbaseimage>
ADD caches.tar.gz /home/somepath/

The build completes and successfully pushes an image to the repository. But: The ADD line produces an image that's twice the size of what we expect.
Expected size: BASE_IMAGE_SIZE + <caches.tar.gz extracted>
Actual size: BASE_IMAGE_SIZE + BASE_IMAGE_SIZE + <caches.tar.gz extracted>

We've tried using --snapshotMode=redo and/or --use-new-run with the same result.

Expected behavior
Expected image size: BASE_IMAGE_SIZE + <caches.tar.gz extracted>

LOG

 + kubectl run kaniko-xxx-master --rm '--stdin=true' '--image=gcr.io/kaniko-project/executor:latest' '--restart=Never' '--overrides=
              {
                  "apiVersion": "v1",
                  "spec": {
                    "containers": [
                    {
                      "name": "kaniko-xxx-master",
                      "image": "gcr.io/kaniko-project/executor:latest",
                      "stdin": true,
                      "stdinOnce": true,
                      "args": [
                        "--dockerfile=Dockerfile",
                        "--context=tar://stdin",
                        "--destination=XXX"
  ,
                        "--snapshotMode=redo",
                        "--verbosity=debug"
                      ],
                      "volumeMounts": [
                        {
                          "name": "kaniko-secret",
                          "mountPath": "/kaniko/.docker/"
                        }
                      ]
                    }],
                    "volumes": [
                    {
                      "name": "kaniko-secret",
                      "secret": {
                        "secretName": "nexus-push-access"
                      }
                    }]
                  }
              }
              ' --kubeconfig XXX
  If you don't see a command prompt, try pressing enter.
  DEBU[0020] Build context located at /kaniko/buildcontext/ 
  DEBU[0020] Copying file /kaniko/buildcontext/Dockerfile to /kaniko/Dockerfile 
  E0202 08:11:07.424627       1 aws_credentials.go:77] while getting AWS credentials NoCredentialProviders: no valid providers in chain. Deprecated.
  	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  DEBU[0021] Skip resolving path /kaniko/Dockerfile       
  DEBU[0021] Skip resolving path /kaniko/buildcontext/    
  DEBU[0021] Skip resolving path /cache                   
  DEBU[0021] Skip resolving path                          
  DEBU[0021] Skip resolving path                          
  DEBU[0021] Skip resolving path                          
  DEBU[0021] Built stage name to index map: map[]         
  INFO[0021] Retrieving image manifest XXX:1.2.0 
  INFO[0021] Retrieving image XXX:1.2.0 
  DEBU[0021] No file found for cache key sha256:26b80f3ad866ffabe9c9f3f03d73658cd3c2358136748ff2f8a7f5e633a64191 stat /cache/sha256:26b80f3ad866ffabe9c9f3f03d73658cd3c2358136748ff2f8a7f5e633a64191: no such file or directory 
  DEBU[0021] Image XXX:1.2.0 not found in cache 
  INFO[0021] Retrieving image manifest XXX:1.2.0 
  INFO[0021] Retrieving image XXX:1.2.0 
  INFO[0021] Built cross stage deps: map[]                
  INFO[0021] Retrieving image manifest XXX:1.2.0 
  INFO[0021] Retrieving image XXX:1.2.0 
  DEBU[0021] No file found for cache key sha256:26b80f3ad866ffabe9c9f3f03d73658cd3c2358136748ff2f8a7f5e633a64191 stat /cache/sha256:26b80f3ad866ffabe9c9f3f03d73658cd3c2358136748ff2f8a7f5e633a64191: no such file or directory 
  DEBU[0021] Image XXX:1.2.0 not found in cache 
  INFO[0021] Retrieving image manifest XXX:1.2.0 
  INFO[0021] Retrieving image XXX:1.2.0 
  INFO[0021] Executing 0 build triggers                   
  INFO[0021] Unpacking rootfs as cmd ADD caches.tar.gz /home/ requires it. 
  DEBU[0021] Mounted directories: [{/kaniko false} {/etc/mtab false} {/tmp/apt-key-gpghome true} {/var/run false} {/proc false} {/dev false} {/dev/pts false} {/sys false} {/sys/fs/cgroup false} {/sys/fs/cgroup/systemd false} {/sys/fs/cgroup/cpu,cpuacct false} {/sys/fs/cgroup/freezer false} {/sys/fs/cgroup/cpuset false} {/sys/fs/cgroup/perf_event false} {/sys/fs/cgroup/devices false} {/sys/fs/cgroup/pids false} {/sys/fs/cgroup/rdma false} {/sys/fs/cgroup/memory false} {/sys/fs/cgroup/net_cls,net_prio false} {/sys/fs/cgroup/hugetlb false} {/sys/fs/cgroup/blkio false} {/dev/mqueue false} {/kaniko/.docker false} {/dev/termination-log false} {/etc/resolv.conf false} {/etc/hostname false} {/etc/hosts false} {/dev/shm false} {/var/run/secrets/kubernetes.io/serviceaccount false} {/proc/bus false} {/proc/fs false} {/proc/irq false} {/proc/sys false} {/proc/sysrq-trigger false} {/proc/acpi false} {/proc/kcore false} {/proc/keys false} {/proc/timer_list false} {/proc/sched_debug false} {/proc/scsi false} {/sys/firmware false}] 
  DEBU[0022] Not adding /dev because it is ignored        
  DEBU[0022] Not adding /etc/hostname because it is ignored 
  DEBU[0022] Not adding /etc/hosts because it is ignored  
  DEBU[0022] Not adding /etc/mtab because it is ignored   
  DEBU[0022] Not adding /proc because it is ignored       
  DEBU[0022] Not adding /sys because it is ignored        
  DEBU[0022] Not adding /var/run because it is ignored    
  DEBU[0022] Whiting out /usr/lib/jvm/.wh..wh..opq        
  DEBU[0022] not including whiteout files                 
  DEBU[0024] Whiting out /usr/share/X11/.wh..wh..opq      
  DEBU[0024] not including whiteout files                 
  DEBU[0024] Whiting out /usr/share/alsa/.wh..wh..opq     
  DEBU[0024] not including whiteout files                 
  INFO[0033] LABEL com.XXX=https://XXX XXX.component=Cert 
  INFO[0033] Applying label XXX.job=https://XXX 
  INFO[0033] Applying label XXX.component=Cert 
  DEBU[0033] Resolved caches.tar.gz to caches.tar.gz      
  DEBU[0033] Resolved /home/ to /home/    
  DEBU[0033] Getting files and contents at root /kaniko/buildcontext/ for /kaniko/buildcontext/caches.tar.gz 
  INFO[0033] Using files from context: [/kaniko/buildcontext/caches.tar.gz] 
  INFO[0033] ADD caches.tar.gz /home/             
  DEBU[0033] Resolved caches.tar.gz to caches.tar.gz      
  DEBU[0033] Resolved /home/ to /home/    
  DEBU[0033] Getting files and contents at root /kaniko/buildcontext/ for /kaniko/buildcontext/caches.tar.gz 
  INFO[0033] Unpacking local tar archive caches.tar.gz to /home/ 
  DEBU[0038] Added [] from local tar archive caches.tar.gz 
  INFO[0038] Taking snapshot of full filesystem...        
  DEBU[0048] /etc/terminfo/v/vt220 inode exists in hardlinks map, linking to /etc/terminfo/v/vt200 
  DEBU[0049] /usr/bin/git-receive-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0049] /usr/bin/git-upload-archive inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0049] /usr/bin/git-upload-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-add inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-am inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-annotate inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-apply inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-archive inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-bisect--helper inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-blame inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-branch inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-bundle inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-cat-file inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-check-attr inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-check-ignore inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-check-mailmap inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-check-ref-format inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-checkout inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-checkout-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-cherry inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-cherry-pick inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-clean inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-clone inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-column inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-commit inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-commit-graph inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-commit-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-config inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-count-objects inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-credential inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-describe inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-diff inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-diff-files inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-diff-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-diff-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-difftool inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-env--helper inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fast-export inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fetch inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fetch-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fmt-merge-msg inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-for-each-ref inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-format-patch inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fsck inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-fsck-objects inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-gc inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-get-tar-commit-id inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-grep inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-hash-object inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-help inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-index-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-init inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-init-db inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-interpret-trailers inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-log inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-ls-files inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-ls-remote inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-ls-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-mailinfo inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-mailsplit inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-base inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-file inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-ours inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-recursive inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-subtree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-merge-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-mktag inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-mktree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-multi-pack-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-mv inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-name-rev inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-notes inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-pack-objects inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-pack-redundant inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-pack-refs inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-patch-id inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-prune inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-prune-packed inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-pull inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-push inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-range-diff inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-read-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-rebase inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-receive-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-reflog inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-remote inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-remote-ext inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-remote-fd inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-remote-ftps inode exists in hardlinks map, linking to /usr/libexec/git-core/git-remote-ftp 
  DEBU[0050] /usr/libexec/git-core/git-remote-http inode exists in hardlinks map, linking to /usr/libexec/git-core/git-remote-ftp 
  DEBU[0050] /usr/libexec/git-core/git-remote-https inode exists in hardlinks map, linking to /usr/libexec/git-core/git-remote-ftp 
  DEBU[0050] /usr/libexec/git-core/git-repack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-replace inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-rerere inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-reset inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-restore inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-rev-list inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-rev-parse inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-revert inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-rm inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-send-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-shortlog inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-show inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-show-branch inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-show-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-show-ref inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-sparse-checkout inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-stage inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-stash inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-status inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-stripspace inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-submodule--helper inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-switch inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-symbolic-ref inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-tag inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-unpack-file inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-unpack-objects inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-update-index inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-update-ref inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-update-server-info inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-upload-archive inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-upload-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-var inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-verify-commit inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-verify-pack inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-verify-tag inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-whatchanged inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-worktree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0050] /usr/libexec/git-core/git-write-tree inode exists in hardlinks map, linking to /usr/bin/git 
  DEBU[0069] mapping stage idx 0 to digest sha256:7ee424fbf0b7aea7e272778f2fd690fe81c8b2269ef73814a14a7f5b66629593 
  DEBU[0069] mapping digest sha256:7ee424fbf0b7aea7e272778f2fd690fe81c8b2269ef73814a14a7f5b66629593 to cachekey  
  
Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@markus-seidl
Copy link
Author

Do you maybe know a workaround to only include the directory /home/ in the new layer? I didn't see any possibility to ignore/add directories.

@tejal29 tejal29 added the area/behavior all bugs related to kaniko behavior like running in as root label Feb 23, 2021
@aemaem
Copy link

aemaem commented May 19, 2021

I don't know if this is the reason for our problem with kaniko 1.5.2. We didn't have the issue with 1.3.0.

Taking snapshot of full filesystem...
Finished with exit code: -9

Background

We are building docker images with kaniko inside kubernetes and having this problem for larger images (>2GB) with larger artifacts (>500MB) being added to the image. The pod, which was running kaniko showed the OOMKilled status (maybe related to #909)

Sorry, for not providing more information on how to reproduce the issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/behavior all bugs related to kaniko behavior like running in as root
Projects
None yet
Development

No branches or pull requests

3 participants