Dockerfile build successful with docker but fails with kaniko

346 views Asked by At

I have a java dockerfile and i can build it successfully with

docker build .

command.

But the problem is when i want to build it with kaniko in my gitlab ci pipeline, i got the following error :


INFO[0172] Taking snapshot of full filesystem... 

153error building image: error building stage: failed to take snapshot: Failed to get file info for /root/.kotlin/daemon/kotlin-daemon.17994.run: lstat /root/.kotlin/daemon/kotlin-daemon.17994.run: no such file or directory

It worth noting that sometimes kaniko build is successful and sometimes it fail s.

0

There are 0 answers